On this page
tmux.Window.Rename
- Module
- tmux
- Declared in
- Window
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/window_lifecycle.go
- Other languages
- PythonTypeScriptRustJava.NETC++Swift
-
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
- Python
libtmux.Window.rename_window - TypeScript
window.Window.rename - Rust
window.Window.rename - Java
io.github.libtmux.Window.Window.rename - .NET
LibTmux.Window.RenameAsync - C++
libtmux::Window::rename - Swift
Server.rename(_:to:)
- Python
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