# LibTmux::Model::WindowLinkRef.move

- **Module:** LibTmux::Model
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Model.rakumod#L545
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-model-windowlinkref-move/

```
method move(SessionRef:D $session, Count:D :$index!, Bool :$select = False,
                Bool :$replace = False --> WindowLinkRef:D)
```

Move this association; tmux also synchronizes the affected session groups.

Move this association; tmux also synchronizes the affected session groups.

## Parameters

- `$session` (`SessionRef:D`)
- `$index` (`Count:D`)
- `$select?` (`Bool`)
- `$replace?` (`Bool`)

## tmux command

The tmux commands behind `move`.

- [`move-window`](/en/tmux/latest/manual/move-window/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_move_window_entry`](/en/tmux/latest/reference/c-variable-cmd_move_window_entry/) (attribute)
- [`cmd_move_window_exec`](/en/tmux/latest/reference/c-function-cmd-move-window-c-cmd_move_window_exec/) (function)

## In other ports

Move a window to another session or index

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Window.move_window`](/en/py/latest/reference/libtmux-window-move_window/) (method) |
| Lua | [`libtmux.WindowLink:move`](/en/lua/latest/reference/libtmux-windowlink-move/) (method) |
| Erlang | [`tmux_window_link:move/3`](/en/erlang/latest/reference/tmux_window_link-move-3/) (function) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | [`window.Window.move`](/en/ts/latest/reference/window-window-move/) (method) |
| Rust | [`window.Window.move_to`](/en/rs/latest/reference/window-window-move_to/) (method) |
| Go | [`tmux.Window.Move`](/en/go/latest/reference/tmux-window-move/) (method) |
| Java | [`io.github.libtmux.Window.moveTo`](/en/java/latest/reference/io-github-libtmux-window-window-moveto/) (method) |
| C# | [`LibTmux.Window.MoveAsync`](/en/csharp/latest/reference/libtmux-window-moveasync/) (method) |
| C++ | [`libtmux::Window::move_to`](/en/cxx/latest/reference/libtmux-window-move_to/) (method) |
| Swift | [`Server.move(_:to:at:)`](/en/swift/latest/reference/server-move(_-to-at-)/) (method) |
| OCaml | [`Libtmux_unix.Client.move_window_at`](/en/ocaml/latest/reference/libtmux_unix-client-move_window_at/) (function) |
| Perl | [`LibTmux::Server::move_window`](/en/perl/latest/reference/libtmux-server-move_window/) (method). 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#.
