libtmux
libtmux copied to clipboard
Feature Request: Get current session
When using tmux on the command-line, I can get the current session by running tmux ls.
It would be useful if libtmux could do the same.
The suggested approach of using server.list_sessions()[0] does not work. It returns whichever session is at the top of tmux's listing, not necessarily the current one.