# LibTmux.move_pane

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Julia
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/topology.jl#L176
- **Page:** https://libtmux.org/en/julia/latest/reference/libtmux-move_pane/

```
move_pane(
    connection::LibTmux.ControlConnection,
    source::LibTmux.PaneRef,
    destination::LibTmux.PaneRef;
    direction,
    size,
    select,
    kwargs...
)

move_pane(
    server::LibTmux.Server,
    source::LibTmux.PaneRef,
    destination::LibTmux.PaneRef;
    direction,
    size,
    select,
    kwargs...
)
```

## Methods

### `move_pane` (overload 1)

```julia
move_pane(
    connection::LibTmux.ControlConnection,
    source::LibTmux.PaneRef,
    destination::LibTmux.PaneRef;
    direction,
    size,
    select,
    kwargs...
)
```

[Source](https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/control_topology.jl#L178).

Move a physical pane without restarting its process. Direction, cell size and selection options match the subprocess method. Both references must belong to the connection's daemon generation. Return the fenced `ControlResult`.

```julia
move_pane(connection::ControlConnection, source::PaneRef, destination::PaneRef; kwargs...)
```

### `move_pane` (overload 2)

```julia
move_pane(
    server::LibTmux.Server,
    source::LibTmux.PaneRef,
    destination::LibTmux.PaneRef;
    direction,
    size,
    select,
    kwargs...
)
```

[Source](https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/topology.jl#L184).

Move a physical pane beside an exact destination pane, preserving its ID. Direction is `:left`, `:right`, `:above` or `:below`; size is a cell count. The old window can disappear when its final pane moves. No process is respawned.

```julia
move_pane(server, source::PaneRef, destination::PaneRef;
          direction=:below, size=nothing, select=false, kwargs...)
```

## Parameters

- `connection` (`LibTmux.ControlConnection`) (for `move_pane(connection, source, destination, direction, size, select, kwargs)`)
- `source` (`LibTmux.PaneRef`)
- `destination` (`LibTmux.PaneRef`)
- `direction` (`Symbol`)
  Default: `:below`.
- `size`
  Default: `nothing`.
- `select` (`Bool`)
  Default: `false`.
- `kwargs`
- `server` (`LibTmux.Server`) (for `move_pane(server, source, destination, direction, size, select, kwargs)`)
