# LibTmux.Query.Link

- **Package:** libtmux-haskell
- **Language:** Haskell
- **Kind:** module
- **Source:** https://github.com/libtmux/libtmux-haskell/blob/663e212622a02aa74a9bdc8ff71e2b45fcb1d4d5/src/LibTmux/Query/Link.hs
- **Page:** https://libtmux.org/en/haskell/latest/reference/libtmux-query-link/

Fields and navigation for an observed session*index*window binding.

Use with [`LibTmux.Query`](/en/haskell/latest/reference/libtmux-query/). All tokens belong to the tmux 3.3a baseline.
 The same physical window can occur at several indices in one session;
 [`WindowLink`](/en/haskell/latest/reference/libtmux-snapshot-t-windowlink/) retains each appearance. [`active`](/en/haskell/latest/reference/libtmux-query-link-v-active/) is contextual to the session.

## Members

### Collections and queries

- [`panes`](/en/haskell/latest/reference/libtmux-query-link-v-panes/) (function): Physical panes reached through this link, ordered by pane index.

### Other members

- [`active`](/en/haskell/latest/reference/libtmux-query-link-v-active/) (function): Whether this link is selected in its session.
- [`index`](/en/haskell/latest/reference/libtmux-query-link-v-index/) (function): Window-link index within the session; reindexing can change it.
- [`session`](/en/haskell/latest/reference/libtmux-query-link-v-session/) (function): Resolve the session in the supplied snapshot with :obj:`related <LibTmux.Query#v:related>`.
- [`sessionId`](/en/haskell/latest/reference/libtmux-query-link-v-sessionid/) (function): Native ID of the session that owns this observed link.
- [`window`](/en/haskell/latest/reference/libtmux-query-link-v-window/) (function): Resolve the shared physical window in the supplied snapshot.
- [`windowId`](/en/haskell/latest/reference/libtmux-query-link-v-windowid/) (function): Native ID of the shared physical window.
