# Libtmux.Operations.move_pane

- **Module:** Libtmux
- **Package:** libtmux
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/lib/libtmux.mli#L1328
- **Public owner:** Libtmux
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux-operations-move_pane/

```
val move_pane :
  ?size:Geometry.size ->
  Pane.target ->
  beside:Pane.target -> direction:Geometry.direction -> unit Command.t
```

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?` (`Geometry.size`)
- `arg1` (`Pane.target`)
- `beside` (`Pane.target`)
- `direction` (`Geometry.direction`)
