libtmux Reference MCP Search
On this page

selection.encodeWhereDocument

View as Markdown

Module
selection
Package
@libtmux/libtmux
Source
packages/libtmux/src/selection.ts
encodeWhereDocument ( document : : WhereDocumentV1 ) string
function [source]
function [source]
encodeWhereDocument

Serialize a WHERE document as canonical JSON.

Field names and values use tmux's stable wire spellings. The input is validated without invoking accessors or conversion hooks.

Examples

import { encodeWhereDocument } from "libtmux";
const encoded = encodeWhereDocument({
  model: "pane",
  version: 1,
  where: { title: { contains: "log" } },
});
Raises

0 declared, 0 inherited

Esc

Type to search.