# libtmux.Pane:move_to

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Lua
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-lua/blob/d68f829fe097e38dcbbf7147e276666fe615f0cf/lua/libtmux/_internal/entity.lua#L509
- **Page:** https://libtmux.org/en/lua/v0.1.1/reference/libtmux-pane-move_to/

```
move_to: fun(
  self: libtmux.Pane,
  other: libtmux.Pane,
  options?: libtmux.MovePaneOptions,
):libtmux.Request<boolean>
```

## Parameters

- `other` (`libtmux.Pane`):  A tmux pane.
- `options` (`libtmux.MovePaneOptions?`)

## tmux command

The tmux commands behind `move_to`.

- [`join-pane`](/en/tmux/latest/manual/join-pane/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_join_pane_entry`](/en/tmux/latest/reference/c-variable-cmd_join_pane_entry/) (attribute)
- [`cmd_join_pane_exec`](/en/tmux/latest/reference/c-function-cmd-join-pane-c-cmd_join_pane_exec/) (function)

## Guides

Pages that discuss `move_to`.

- [Topology operations](/en/lua/v0.1.1/guides/topology/)

## In other ports

Move a pane to another position

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Pane.move`](/en/py/latest/reference/libtmux-pane-move/) (method) |
| Ruby | [`LibTmux::Pane#move`](/en/ruby/latest/reference/libtmux-pane-move/) (method) |
| TypeScript | no equivalent on `Pane` |
| Rust | no equivalent on `Pane` |
| Go | [`tmux.Pane.Move`](/en/go/latest/reference/tmux-pane-move/) (method) |
| Java | no equivalent on `Pane` |
| C# | [`LibTmux.Pane.MoveAsync`](/en/csharp/latest/reference/libtmux-pane-moveasync/) (method) |
| C++ | no equivalent on `Pane` |
| Swift | `Server.move(_:to:at:)` moves a window, not a pane |

No equivalent is recorded in PowerShell, Julia, Elixir, Kotlin, Scala or F#.
