tmux-python / tmux-python/libtmux

Access session group id

Open
#146 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.2k
Forks
127
Avg merge
2h 13m
Merged PRs (30d)
1

Description

When a new session is created via the tmux new-session -t "name" command and a session with that name already exists, a new group will be created with both the original and the new session as members or the new session will be added to the already existing group. This is useful when you want to attach a window within the original session without actually changing the selected window of the original session. Let this new session be called clone session.

Now my approach of getting the name of the 'clone' session would be to filter sessions by group id, but group ids are currently not featured in the server.list_sessions() call, thus it would be nice if this could be added.

Building on that, a call to 'clone' a session with the option of implicit renaming could be implemented.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with server.list_sessions() and inspect how session fields from tmux are exposed. Add the group id to the returned session data, and treat the proposed clone-session call with implicit renaming as separate scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.