Core Library0.xAPI reference

Choose documentation 2

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

cmdlet libtmux-powershell

LibTmux.Move-TmuxWindow

Move one session placement of a window.

Source and package
Qualified name
LibTmux\Move-TmuxWindow
Declared in
LibTmux
Package
LibTmux
Source
src/LibTmux.PowerShell/MoveTmuxWindowCommand.cs

Description

Move only the placement captured in the source Window handle. Other links to the same physical window remain in their sessions. Omit DestinationSession to move within the source session. Omit Index to let tmux use the next free index in the destination. A supplied destination Session must belong to the same endpoint and daemon generation as the Window.

With PassThru, return a new Window handle containing the observed destination placement. The original handle remains unchanged and is stale after a move. Without PassThru, emit no success object. Confirmation is requested by default because ReplaceExisting can remove a destination window. WhatIf performs no tmux I/O.

Notes

The core checks captured source placement and server generation before the move. A stale placement, tmux rejection or failed readback writes a per-input Tmux.WindowMoveFailed error. Readback failure after dispatch has unknown final state; inspect topology before deciding whether to retry. ErrorAction Continue permits later inputs; ErrorAction Stop stops at the first failure.

Command details

Command type
cmdlet
Confirmation
Supports -WhatIf and -Confirm; confirm impact: High.
Positional binding
Enabled.
Pipeline inputs
LibTmux.Window: One native source placement per pipeline input.
Outputs
LibTmux.Window
Parameters
Common parameters 12

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

Returns

LibTmux.Window: One replacement Window per successful input when PassThru is present; otherwise no success output.

Examples

Example 1 Move the previously selected $window to index 5 in its own session and emit the replacement handle. Assign the output for subsequent operations. View source

Terminal window
$window | LibTmux\Move-TmuxWindow -Index 5 -PassThru -Confirm:$false

Recorded calls

source calls
No call edges in the PowerShell model.

The PowerShell reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux\Move-TmuxWindow.

tmux command

task material

The tmux commands behind Move-TmuxWindow.

tmux C API

task material

The C declarations in tmux that implement these commands.

Esc
Search in

Type to search.

Reference previewOpen reference