What is the best way to split every pane of the current window into two? I'm asking because it provides a way to quickly exponentiate the amount of panes, e.g. 5 splits equal 32 panes.
After activating pane synchronization with :setw synchronize-panes on
I expected the<prefix> + %
(or "
) to split all panes, but it only splits the currently active pane.
I've cobbled together this command that iterates over all current panes in reverse and splits each one, but it seems a bit cumbersome: tmux lsp -F "#{pane_index}" | tac | xargs -I{} tmux split-pane -t {}
(attach -h
to split sideways).
Is there any easier way to split all panes of the current window? Thanks!