# LibTmux::WindowLink#move

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/c8b839595d5a30e271e3f9be0d0fe811ddb11b7e/gems/libtmux/lib/libtmux/entity.rb#L240
- **Page:** https://libtmux.org/en/ruby/v0.1.0/reference/libtmux-windowlink-move/

tmux command: [`list-commands`](/en/tmux/latest/manual/list-commands/)

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

tmux command: [`show-options`](/en/tmux/latest/manual/show-options/)

```
def move: (
  session: ::LibTmux::EntityRef,
  index: ::Integer,
  ?timeout: ::Numeric,
  ?cancel: untyped
) -> ::LibTmux::CommandResult
```

Behavior: Window links.

Behavior contract: Window links.

## Parameters

- `session` (`::LibTmux::EntityRef`)
- `index` (`::Integer`)
- `timeout` (`::Numeric`)
- `cancel` (`untyped`)

## Raises

- `ArgumentError`
