Is there a way to set tmux so that it automatically adjusts window width when I switch to the pane so that it will be wide axactly as the longest (visible on screen) line in the file I have open?
I'm doing this manually with the command
:resize-pane -R 10
or
:resize-pane -L 10
I always have to guess the number and when I switch to another pane I have to do it again
Note that this functionality is relevant only to vertical panes.