# LibTmux::WindowLinkSnapshot#index

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/da7b6191b9439e3c84fa1c9eeaa9168263ee7af4/gems/libtmux/lib/libtmux/snapshot.rb#L148
- **Page:** https://libtmux.org/en/ruby/v0.1.1/reference/libtmux-windowlinksnapshot-index/

```
def index: () -> ::Integer
```

Behavior: Captured records.

Behavior contract: Captured records.

## In other ports

A window's index in its session

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Window.index`](/en/py/latest/reference/libtmux-window-index/) (property) |
| Elixir | [`LibTmux.WindowLink.index`](/en/elixir/latest/reference/libtmux-windowlink-index/) (property). The index belongs to the session placement, `WindowLink`, not to the physical window. |
| TypeScript | no accessor; the field is read from `Window.format`, tmux's own row |
| Rust | [`window.Window.index`](/en/rs/latest/reference/window-window-index/) (method) |
| Go | [`tmux.Window.Index`](/en/go/latest/reference/tmux-window-index/) (method) |
| Java | [`io.github.libtmux.Window.index`](/en/java/latest/reference/io-github-libtmux-window-window-index/) (method) |
| C# | [`LibTmux.Window.Index`](/en/csharp/latest/reference/libtmux-window-index/) (property) |
| C++ | [`libtmux::Window::index`](/en/cxx/latest/reference/libtmux-window-index-1i4m/) (method) |
| Swift | no equivalent on `Window` |

No equivalent is recorded in Lua, PowerShell, Julia, Kotlin, Scala or F#.
