Core LibraryAPI Reference

Choose documentation 2

latest

Current version

latest
English

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

cmdlet libtmux-powershell latest

LibTmux.Get-TmuxQueryPlan

LibTmux\Get-TmuxQueryPlan LibTmux\Get-TmuxQueryPlan

Inspect how a query will run against a known tmux version.

Source and package
Declared in
LibTmux
Package
LibTmux
Source
src/LibTmux.PowerShell/GetTmuxQueryPlanCommand.cs

Description#

Prepare a native query plan without contacting tmux. The plan exposes pushed and residual predicates, required fields, snapshot depth and fallback reasons. Displaying the plan or reading its properties performs no I/O. Pass it to Invoke-TmuxQuery with an explicit server to execute it.

Auto evaluates supported conditions inside tmux and the remainder locally. Never evaluates the complete predicate locally. Require rejects predicates that need local evaluation. All modes retain the complete acquired graph; source evaluation does not reduce the captured rows.

Notes

Invalid or unsupported planning terminates with Tmux.QueryPlanFailed . Planning does not discover the installed client or daemon version.

Examples#

Example 1 Prepare an exact pane-ID query for tmux 3.2a without opening a connection. Use the observed daemon version when preparing a plan for execution. View source

Terminal window
$version = [LibTmux.TmuxVersion]::Parse('3.2a')
LibTmux\New-TmuxQuery -Target Pane -Criteria @{ Id = '%0' } |
LibTmux\Get-TmuxQueryPlan -DaemonVersion $version -Pushdown Require
Parameters
Common parameters 12

PowerShell supplies these parameters. See common parameter behavior for their effects.

Returns

` LibTmux.Query.QueryPlan <T>`: One native plan targeting Session , Window or Pane .

Discussed in Local selection and source queries

Esc

Type to search.

Reference preview Open reference