libtmux icon indicating copy to clipboard operation
libtmux copied to clipboard

Feature Request: Get current session

Open MaxBarraclough opened this issue 6 years ago • 0 comments

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.

MaxBarraclough avatar Jan 01 '20 17:01 MaxBarraclough