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

Remove one session placement of a window.

Source and package
Qualified name
LibTmux\Remove-TmuxWindowLink
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
Parameters
Common parameters 12

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

Returns

None: No success objects are emitted.

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

Same owner

containment 1 of 58 shown

Other members of LibTmux whose names share Remove-TmuxWindowLink. They sit on the same type; that does not make them behave alike.

All 58 members of LibTmux

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

tmux command

task material

The tmux commands behind Remove-TmuxWindowLink.

tmux C API

task material

The C declarations in tmux that implement these commands.

Esc
Search in

Type to search.

Reference previewOpen reference