Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

function libtmux-ts latest

encodeWhereDocument

Serialize a WHERE document as canonical JSON.

Source and package
Qualified name
encodeWhereDocument
Module
selection
Package
libtmux
Source
packages/libtmux/src/selection.ts
function encodeWhereDocument( document: WhereDocumentV1, ): string

Description#

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" } },
});
Parameters
Raises

Guides#

Pages that discuss encodeWhereDocument.

Esc

Type to search.

Reference previewOpen reference