libtmux Reference MCP Search
On this page

io.github.libtmux.Window.Window.rename

View as Markdown

Module
io.github.libtmux.Window
Declared in
Window
Package
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/Window.java
Other languages
PythonTypeScriptRustGo.NETC++Swift
rename ( name : String ) Window
method [source]
method [source]
rename

Renames this window and returns a handle on it as it is now.

<p>A : or . is kept as written on every supported release but 3.7, which refuses the name. A kept delimiter cannot then address the window, since a target splits on both. Unlike a session name, a window name is never rewritten.

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.