# tmux.Window.Move

- **Module:** tmux.Window
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/window_link_move.go#L174
- **Page:** https://libtmux.org/reference/go/tmux-window-move/

```
tmux.Window.Move(ctx: context.Context, request: MoveWindowRequest) -> (Window, error)
```

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.

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.
