# window_stack_index

Source: https://libtmux.org/en/tmux/3.7c/catalog/formats/window_stack_index/

> Index in session most recent stack

format variable tmux3.7c

Index in session most recent stack

* Scope

  Describes the window being formatted

* Type

  Text

* Usage

  `#{window_stack_index}`

## Description[#](https://libtmux.org/en/tmux/3.7c/catalog/formats/window_stack_index/#description)

Index in session most recent stack

## Releases[#](https://libtmux.org/en/tmux/3.7c/catalog/formats/window_stack_index/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/formats/window_stack_index/) : present
* [tmux 3.2a](https://libtmux.org/en/tmux/3.2a/catalog/formats/window_stack_index/) : present

## Source[#](https://libtmux.org/en/tmux/3.7c/catalog/formats/window_stack_index/#source)

* Defined in

  [`format.c:3749`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L3749)

* C source reference

  [`format_cb_window_stack_index`](https://libtmux.org/en/tmux/3.7c/reference/c-function-format-c-format_cb_window_stack_index/)

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.7c/manual/full/#window_stack_index)

## Used by[#](https://libtmux.org/en/tmux/3.7c/catalog/formats/window_stack_index/#used-by)

Library documentation that names this format variable.

* Go

  [`tmux.FormatValues.WindowStackIndex`](https://libtmux.org/en/go/latest/reference/tmux-formatvalues-windowstackindex/), [`tmux.Window.StackIndex`](https://libtmux.org/en/go/latest/reference/tmux-window-stackindex/)
