# window.inThisSession

- **Module:** window
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/window.ts#L73
- **Page:** https://libtmux.org/reference/ts/window-inthissession/

```
window.inThisSession(window: : Window, options: : MoveWindowOptions) -> MoveWindowOptions
```

Fill in the destination session the caller left out.

tmux reads a destination of `:3` as index 3 of the *current* session, which
is whichever one it happens to consider current — not this window's. Naming
the window's own is what makes "the window stays in its own session when
omitted" true, and it is the only reading under which omitting the session is
a smaller request rather than a different one.
