Window.Move
Move removes the receiver's exact winlink and places it in TargetSession, or renumbers the selected session when Renumber is set. Unless NoSelect is set, tmux makes the moved winlink current in the destination session; this is not a global client-focus guarantee. The stable WindowID does not by itself identify either linked view.
Source and package
- Qualified name
-
tmux.Window. Move - Package
- tmux
- Declared in
Window- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/window_link_move.go
- Other languages
- Perlmethod Erlang PowerShell Julia Elixir Haskell Common Lisp Python Ruby LuaTypeScriptRustJavaC#C++Swift Kotlin Scala OCaml F# Clojure
- func (w Window) Move( ctx context
.Context , request MoveWindow , ) (Window, error)Request -
Description#
Move returns a canonical freshly materialized
Window, which may use a different linked session than the destination. If the command succeeds but refresh fails, it returns the receiver with that error. Earlier failures return zero; transport errors are delivery-ambiguous.- Parameters
tmux command#
The tmux commands behind Move.
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 |
|---|---|
| Python | libtmux |
| Lua | libtmux |
| Erlang | tmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | window |
| Rust | window |
| 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#.