libtmux Reference MCP Search
On this page

tmux.Window.Rename

View as Markdown

Module
tmux
Declared in
Window
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/window_lifecycle.go
Other languages
PythonTypeScriptRustJava.NETC++Swift
Rename ( ctx : context.Context , name : string ) (Window, error)
method [source]
method [source]
Rename

Rename changes the stable window through the receiver's exact winlink and returns a canonical freshly materialized Window . The returned winlink may therefore use another session when the WindowID is linked. If the command succeeds but refresh fails, Rename returns the receiver with that error. A transport or context error can be delivery-ambiguous; no rollback is attempted.

In other languages Rename a window

Examples

>>> window = session.active_window
>>> window.rename_window('My project')
Window(@1 1:My project, Session($1 ...))
>>> window.rename_window('New name')
Window(@1 1:New name, Session($1 ...))
await window.rename("editor");

0 declared, 0 inherited

Esc

Type to search.