Window.move_window
Move current Window object $ tmux move-window.
Source and package
-
- Parameters
-
-
destination(str) # – Thetarget windowor index to move the window to, default: empty string. -
session(str | None) # – Thetarget sessionor index to move the window to, default: current session. -
after(bool | None) # – Insert after the target window (-aflag). added 0.56 -
before(bool | None) # – Insert before the target window (-bflag). added 0.56 -
no_select(bool | None) # – Do not make the moved window the current window (-dflag). added 0.56 -
kill_target(bool | None) # – Kill the target window if it exists (-kflag). added 0.56 -
renumber(bool | None) # – Renumber all windows in sequential order (-rflag). This is a standalone operation — when used, no move is performed and other parameters are ignored. added 0.56
-
- Returns
-
WindowSelf, for method chaining. - Raises
-
-
libtmux
.exc – If tmux returns an error..Lib Tmux Exception
-
tmux command#
The tmux commands behind move_window.
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Move a window to another session or index
| Language | Equivalent |
|---|---|
| Lua | libtmux |
| Erlang | tmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | window |
| Rust | window |
| Go | tmux |
| Java | io |
| C# | Lib |
| C++ | libtmux:: |
| Swift | Server |
| OCaml | Libtmux |
| Perl | Lib Requires an explicit WindowLink or session_id:index context; a physical window alone does not select a session placement. |
No equivalent is recorded in Ruby, PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.