parseLegacyWhere
Convert the Python port's name__contains spelling to canonical criteria.
Source and package
- Qualified name
-
parseLegacy Where - Module
- selection
- Package
- libtmux
- Source
- packages/libtmux/src/selection.ts
-
Description#
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);