tmux-python / tmux-python/libtmux
Access session group id
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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