# Libtmux_eio.Client.move_pane

- **Module:** Libtmux_eio
- **Package:** libtmux-eio
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/eio/libtmux_eio.mli#L544
- **Public owner:** Libtmux_eio
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux_eio-client-move_pane/

```
val move_pane :
  ?size:Libtmux.Geometry.size ->
  t ->
  Libtmux.Pane.target ->
  beside:Libtmux.Pane.target ->
  direction:Libtmux.Geometry.direction -> (unit, Libtmux.Error.t) result
```

Move the source pane beside another pane, optionally setting the split size. Both targets must belong to the same bound generation. An emptied source window is removed by tmux.

## Parameters

- `size?` (`Libtmux.Geometry.size`)
- `arg1` (`t`)
- `arg2` (`Libtmux.Pane.target`)
- `beside` (`Libtmux.Pane.target`)
- `direction` (`Libtmux.Geometry.direction`)

## tmux command

The tmux commands behind `move_pane`.

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

## tmux C API

The C declarations in tmux that implement these commands.

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

## In other ports

Move a pane into another window

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Pane.join`](/en/py/latest/reference/libtmux-pane-join/) (method) |
| Ruby | [`LibTmux::Pane#join`](/en/ruby/latest/reference/libtmux-pane-join/) (method) |
| Erlang | [`tmux_pane:join/3`](/en/erlang/latest/reference/tmux_pane-join-3/) (function) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | [`pane.Pane.joinTo`](/en/ts/latest/reference/pane-pane-jointo/) (method) |
| Rust | no equivalent on `Pane` |
| Go | [`tmux.Pane.Join`](/en/go/latest/reference/tmux-pane-join/) (method) |
| Java | [`io.github.libtmux.Pane.joinTo`](/en/java/latest/reference/io-github-libtmux-pane-pane-jointo/) (method) |
| C# | [`LibTmux.Pane.JoinAsync`](/en/csharp/latest/reference/libtmux-pane-joinasync/) (method) |
| C++ | [`libtmux::Pane::join`](/en/cxx/latest/reference/libtmux-pane-join/) (method) |
| Swift | [`Server.join(_:into:direction:size:)`](/en/swift/latest/reference/server-join(_-into-direction-size-)/) (method) |
| Perl | No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands. |

No equivalent is recorded in Lua, PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

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) |
| Lua | [`libtmux.Pane:move_to`](/en/lua/latest/reference/libtmux-pane-move_to/) (method) |
| Erlang | [`tmux_pane:move/3`](/en/erlang/latest/reference/tmux_pane-move-3/) (function) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| 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 |
| Perl | No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands. |

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