# selection.SessionWhere

- **Module:** selection
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** interface
- **Source:** https://github.com/libtmux/libtmux-ts/blob/46cccfef2a546de55ce8b308249b8c76339089a0/packages/libtmux/src/selection.ts#L154
- **Page:** https://libtmux.org/en/ts/latest/reference/selection-sessionwhere/

Criteria matching a session, evaluated against one snapshot.

Fields given together must all hold. [`AND`](/en/ts/latest/reference/selection-sessionwhere-and/), [`OR`](/en/ts/latest/reference/selection-sessionwhere-or/) and [`NOT`](/en/ts/latest/reference/selection-sessionwhere-not/) take whole
criteria rather than field names, so they nest, and a relation such as
`some` or `every` is satisfied against the objects the snapshot holds —
not against tmux as it stands now.

## Members

### Collections and queries

- [`windows`](/en/ts/latest/reference/selection-sessionwhere-windows/) (property)
- [`panes`](/en/ts/latest/reference/selection-sessionwhere-panes/) (property)

### Other members

- [`active`](/en/ts/latest/reference/selection-sessionwhere-active/) (property)
- [`activePane`](/en/ts/latest/reference/selection-sessionwhere-activepane/) (property)
- [`activeWindow`](/en/ts/latest/reference/selection-sessionwhere-activewindow/) (property)
- [`activeWindowIndex`](/en/ts/latest/reference/selection-sessionwhere-activewindowindex/) (property)
- [`activity`](/en/ts/latest/reference/selection-sessionwhere-activity/) (property)
- [`activityFlag`](/en/ts/latest/reference/selection-sessionwhere-activityflag/) (property)
- [`alert`](/en/ts/latest/reference/selection-sessionwhere-alert/) (property)
- [`alerts`](/en/ts/latest/reference/selection-sessionwhere-alerts/) (property)
- [`AND`](/en/ts/latest/reference/selection-sessionwhere-and/) (property)
- [`attached`](/en/ts/latest/reference/selection-sessionwhere-attached/) (property)
- [`attachedList`](/en/ts/latest/reference/selection-sessionwhere-attachedlist/) (property)
- [`bellFlag`](/en/ts/latest/reference/selection-sessionwhere-bellflag/) (property)
- [`created`](/en/ts/latest/reference/selection-sessionwhere-created/) (property)
- [`format`](/en/ts/latest/reference/selection-sessionwhere-format/) (property)
- [`group`](/en/ts/latest/reference/selection-sessionwhere-group/) (property)
- [`groupAttached`](/en/ts/latest/reference/selection-sessionwhere-groupattached/) (property)
- [`groupAttachedList`](/en/ts/latest/reference/selection-sessionwhere-groupattachedlist/) (property)
- [`grouped`](/en/ts/latest/reference/selection-sessionwhere-grouped/) (property)
- [`groupList`](/en/ts/latest/reference/selection-sessionwhere-grouplist/) (property)
- [`groupManyAttached`](/en/ts/latest/reference/selection-sessionwhere-groupmanyattached/) (property)
- [`groupSize`](/en/ts/latest/reference/selection-sessionwhere-groupsize/) (property)
- [`id`](/en/ts/latest/reference/selection-sessionwhere-id/) (property)
- [`lastAttached`](/en/ts/latest/reference/selection-sessionwhere-lastattached/) (property)
- [`lastWindowIndex`](/en/ts/latest/reference/selection-sessionwhere-lastwindowindex/) (property)
- [`manyAttached`](/en/ts/latest/reference/selection-sessionwhere-manyattached/) (property)
- [`marked`](/en/ts/latest/reference/selection-sessionwhere-marked/) (property)
- [`name`](/en/ts/latest/reference/selection-sessionwhere-name/) (property)
- [`NOT`](/en/ts/latest/reference/selection-sessionwhere-not/) (property)
- [`OR`](/en/ts/latest/reference/selection-sessionwhere-or/) (property)
- [`path`](/en/ts/latest/reference/selection-sessionwhere-path/) (property)
- [`sessionWindows`](/en/ts/latest/reference/selection-sessionwhere-sessionwindows/) (property)
- [`silenceFlag`](/en/ts/latest/reference/selection-sessionwhere-silenceflag/) (property)
- [`stack`](/en/ts/latest/reference/selection-sessionwhere-stack/) (property)
