# LibTmux::Pane#move

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

```
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`)

## tmux command

The tmux commands behind `move`.

- [`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 to another position

| Language | Equivalent |
| --- | --- |
| 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) |
| 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#.
