Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

selection.parseLegacyWhere

TypeScript
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
selection
Package
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/selection";
const document = parseLegacyWhere("window", { name__contains: "log" });
snapshot.windows.where(document.where);
Raises
  • QueryValidationError – when 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.