selection.parseLegacyWhere
TypeScript
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- selection
- Package
- 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/selection";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