libtmux Reference MCP Search
On this page

selection.parseLegacyWhere

View as Markdown

Module
selection
Package
@libtmux/libtmux
Source
packages/libtmux/src/selection.ts
parseLegacyWhere ( model : : Model , input : : unknown ) Extract<WhereDocumentV1, { readonly model: Model }>
function [source]
function [source]
parseLegacyWhere

Convert the Python port's name__contains spelling to canonical criteria.

Accepts one own data property on a plain object and never invokes accessors or conversion hooks. The returned document and its criteria are frozen.

Examples

import { parseLegacyWhere } from "libtmux";
const document = parseLegacyWhere("window", { name__contains: "log" });
snapshot.windows.where(document.where);
Raises
  • QueryValidationErrorwhen the model is not session or window, or the input is not exactly one string-valued name__contains property.

0 declared, 0 inherited

Esc

Type to search.