sainnhe / tmux-fzf

Use fzf to manage your tmux work environment!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: connect to attached sessions

axelson opened this issue · comments

I run multiple terminal emulators on different workspaces. Often I will want to switch to a tmux session that is already attached in a different workspace. It would be nice if this was supported by tmux-fzf, perhaps via an optional configuration.

Could you try to remove these two lines and see if it works for you?

tmux_attached_sessions=$(tmux list-sessions | grep 'attached' | grep -o '^[[:alpha:][:digit:]_-]*:' | sed 's/.$//g')
sessions=$(echo "$sessions" | grep -v "^$tmux_attached_sessions: ")

Yeah, that works great 👍