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.Remove-TmuxWindowLink

LibTmux\Remove-TmuxWindowLink LibTmux\Remove-TmuxWindowLink

Remove one session placement of a window.

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

Description#

Remove only the session-relative link captured by the native Window handle. Other links to the same physical window remain. Without KillIfLast, tmux refuses to remove the final link. With it, removing the final link also destroys the window and its panes. Confirmation is requested by default. WhatIf performs no tmux I/O.

Notes

This command differs from Remove-TmuxWindow , which kills the physical window and all its links. The core verifies source placement and server generation in tmux's native queue before unlinking. Stale or missing placements write a per-input Tmux.WindowUnlinkFailed error. 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 window placement per pipeline input.
Outputs
System.Void

Examples#

Example 1 Remove the selected $window placement from its session while retaining the physical window through another link. View source

Terminal window
$window | LibTmux\Remove-TmuxWindowLink -Confirm:$false
Parameters
Common parameters 12

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

Returns

None: No success objects are emitted.

Esc

Type to search.

Reference preview Open reference