Page 2 of 2

Posted: 2009-04-28, 14:41 UTC
by Yuta
ghisler(Author) wrote:Currently this isn't planned, sorry.
What about openning the previous tab instead of the next one when you press Ctrl-W.

This way if "open new tabs near current tab" is active:
- Press Ctrl-T
- do you thing
- Press Ctrl-W
Then you'd be back were you started.

This is near of what Bontchev wants (Also me). And I know this was requested before.

Re: On close tab, activate the previously active one

Posted: 2021-09-24, 17:56 UTC
by DrShark
ghisler(Author) wrote: 2007-07-12, 19:20 UTC Currently this isn't planned, sorry.
Can you please reconsider changing the current behavior, at least as an option? Current behavior really breaks workflow context, especially with multi row tabs where the row order can change on switch to different tab after closing some, making it harder to find a tab which was active before switching to now-closed tab.

It's possible to work it around partially by closing the tab with a button:

Code: Select all

TOTALCMD#BAR#DATA
cm_CloseCurrentTab,cm_SwitchToPreviousTab

wciconex.dll,84


0
-1
instead of Ctrl+W, but it sometimes doesn't work as expected and has other issues.

Re: On close tab, activate the previously active one

Posted: 2021-09-24, 19:37 UTC
by ghisler(Author)
Unfortunately this could become very complex, especially when adding multiple tabs at once (APPENDTABS), transferring tabs between panels, or deleting previously visited tabs via middle click, or visiting a tab multiple times.

Re: On close tab, activate the previously active one

Posted: 2021-09-25, 09:27 UTC
by DrShark
ghisler(Author) wrote: 2021-09-24, 19:37 UTC Unfortunately this could become very complex
I agree, but I guess all edge cases could be resolved with time.
And maybe for most cases it could be solved with just 2 new commands: cm_SwitchToPreviouslyActiveTab for switching to a tab which has been active previously, and cm_ClosePreviouslyActiveTab to close the tab which has been active previously.
So a button with commands chain:

Code: Select all

cm_SwitchToPreviouslyActiveTab,cm_ClosePreviouslyActiveTab
would do a desired task of closing current tab with a switch to previously active.

Re: On close tab, activate the previously active one

Posted: 2021-10-04, 11:56 UTC
by Sergey6257
Bontchev wrote: 2007-03-04, 09:12 UTC
If you have 10 tabs:

A B C D E F G H I J

whey you forget the history of tab activating, you will be confuzed what will be when you close tab

A B C D E F G H I [J]
A B C D E F [G] H I
A B C D E F [H] I
A B [C] D E F I

It seems to me not userful and takes a lot of work to programmer.