Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

TypeScript API

property libtmux-ts

NewSessionOptions.groupWith

Share another session's windows, tmux's -t.

Source and package
Qualified name
NewSessionOptions.groupWith
Module
types
Declared in
NewSessionOptions
Package
libtmux
Source
packages/libtmux/src/types.ts

Description

Names a session to group with, not a group: tmux puts the new session in that session's group, or starts one named for it. Members share one window list, so a window created in either appears in both and a window moved in either moves in both — unlike a linked window, where each session keeps its own list and its own index for it.

The group a session ended up in is Session.group. windowName, shellCommand and startDirectory describe a first window, and a grouped session does not make one, so tmux ignores them here.

Esc
Search in

Type to search.

Reference previewOpen reference