Replies: 2 comments
|
agreed, let's make it the default. No setting. the recency stack ctrl-tab uses is already the right source, and empty MRU falls straight back to the existing positional if you want to take it, a PR shaped that way would be welcome. |
|
Opened #231 implementing this as agreed — MRU reselection with no setting, scoped to the closing session's workspace (and the flagged set in flagged sidebar mode), falling back to the positional pick when the recency stack is empty. |
Uh oh!
There was an error while loading. Please reload this page.
When I close the active session, agterm selects the next one by position rather than by where I just came from. That leads to unintuitive jumps.
Two examples, starting from sessions
1 2 3while on session1:1 4 2 3, focused on4. Close4→ I land on2.1 2 3 4, focused on4. Close4→ I land on3.In both cases I'd expect to return to session
1— the one I was on before I opened the session I just closed. It's the same "go back to where I came from" model that Ctrl-Tab already uses, and agterm already tracks that navigation history for it.So the idea: when the active session closes, return to the most-recently-active surviving session instead of the neighbor by position.
I'd be happy to open a PR if you agree on the behavior. My preference is to just make this the behavior (no setting). If you'd rather keep the current positional behavior available, I can add a setting instead — in which case we'd need to decide the default.
All reactions