# LibTmux::Pane#move

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/d8ce4bbee0ca7748a81929f81f7d8d07f8c51267/gems/libtmux/lib/libtmux/operations.rb#L344
- **Page:** https://libtmux.org/en/ruby/v0.1.0.alpha.3/reference/libtmux-pane-move/

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

```
def move: (
  ::LibTmux::EntityRef,
  direction: :horizontal | :vertical,
  ?before: bool,
  ?timeout: ::Numeric,
  ?cancel: untyped
) -> ::LibTmux::CommandResult
```

Behavior: Entity mutation.

Behavior contract: Entity mutation.

## Parameters

- `arg1` (`::LibTmux::EntityRef`)
- `direction` (`:horizontal | :vertical`)
- `before` (`bool`)
- `timeout` (`::Numeric`)
- `cancel` (`untyped`)

## In other ports

### Move a pane to another position

- Python: [`libtmux.Pane.move`](/en/py/latest/reference/libtmux-pane-move/) (method)
- Lua: [`libtmux.Pane:move_to`](/en/lua/latest/reference/libtmux-pane-move_to/) (method)
- Go: [`tmux.Pane.Move`](/en/go/latest/reference/tmux-pane-move/) (method)
- C#: [`LibTmux.Pane.MoveAsync`](/en/csharp/latest/reference/libtmux-pane-moveasync/) (method)
