Hi,
If I have many windows open in tmux and I close one (exit the shell), it does not seem consistent which other window I end up in (active).
Often it is the next highest window, but sometimes it is one before that.
Is there a logic to this I can control ?
I have tried adding a hook for window-close but it does not seem to work for me ?
A hook for pane-exited does get run when I exit a shell - but I cannot seem to determine properly the correct window_index to land on.
I am using renumber-windows on and a base-index of 1.
Anyone have suggestions ?
If I could I would want the target window to be the next highest one before the close, or in other words to have it be the same window_index after the renumber - unless it was the highest numbered window.
thx always for awesome tmux,
-m