On this page
selection.parseLegacyWhere
- Module
- selection
- Package
- @libtmux/libtmux
- Source
- packages/libtmux/src/selection.ts
- parseLegacyWhere ( model : : Model , input : : unknown ) Extract<WhereDocumentV1, { readonly model: Model }>
-
Convert the Python port's
name__containsspelling 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
-
-
QueryValidationError – when the model is not
sessionorwindow, or the input is not exactly one string-valuedname__containsproperty.
-
0 declared, 0 inherited