In my ~/.tmux.config
I have the following configuration:
bind-key X set-window-option synchronize-panes; display-message "synchronize-panes is now #{?pane_synchronized,on,off}"
bind-key e select-pane -e; display-message "Pane #{pane_index} is now enabled"
bind-key E select-pane -d; display-message "Pane #{pane_index} is now disabled"
The first line code is from this post.
I would like to be able to toggle the status of a pane (enabled or disabled) with a single keybinding and get a message of the status of the pane (something similar to the first line of code).
I use tmux version 3.4-1ubuntu0.1 (from ubuntu 24.04 repo)
The idea behind it is to join both function, so that when triggering the first function (synchronize-panes
) just the active panes get synchronized (status of panes visible when running while in tmux :list-panes
) by disabling the active panes, and once the synchronization is turned off, enable again the active panes.
If you have any idea how to achieve that, that would be awesome!