It should be top window on stack, so the one you were using most recently.


On Thu, 4 Nov 2021 at 13:58, M Kelly <[email protected]> wrote:

> 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
>
> --
> You received this message because you are subscribed to the Google Groups
> "tmux-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/tmux-users/55b49e51-db4a-48dd-a7bc-9ecd9b8d4eafn%40googlegroups.com
> <https://groups.google.com/d/msgid/tmux-users/55b49e51-db4a-48dd-a7bc-9ecd9b8d4eafn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/tmux-users/CAEdLfcFJ1zo4GDhaJuLneoZf__a212c3XW%3D3j-BNWjyLgMTT5A%40mail.gmail.com.

Reply via email to