Page 1 of 1

Left/right tab after closing another tab

Posted: 2009-10-21, 16:28 UTC
by František Horálek
Could you add an option to choose whether user wants to switch to left or right neighbor tab after closing one?
It irritates me, allways close tab and switch back ;o) This applies when using mostly keyboard, not mouse - i know about middle-mouse button.

Thank you.

Posted: 2009-10-21, 17:19 UTC
by Balderstrom
This behaviour is annoying. Though I would prefer it to go to the last active tab (which in many cases is to the Left and not the right).

It's most noticeable when you duplicate a tab, do something and then close the newly created tab... the tab to the Right gets activated - and pollutes the directory history in doing so.
(Note: Open new tabs next to current, is enabled)

Posted: 2009-10-22, 13:58 UTC
by JohnFredC
Balderstrom wrote:and pollutes the directory history in doing so.
Correctly stated: "pollutes". Annoying.

A nice feature not currently in TC would be a method to automatically exclude certain tabs and/or folders from the history.

Posted: 2010-09-03, 20:42 UTC
by Balderstrom
Bump.

++ Please consider this option, Mr.Ghisler.

Thank you.

Posted: 2010-09-04, 10:30 UTC
by MVV
Agree too. If TC doesn't remember last active tab so let it jump to previous tab instead of next one when current tab is being closed.

Posted: 2010-09-04, 12:20 UTC
by Hacker
MVV,
let it jump to previous tab instead of next one when current tab is being closed
Only if optional. This really would be counterintuitive for me as Firefox etc. work the other way round.

Roman

Posted: 2010-09-04, 15:05 UTC
by Balderstrom
Balderstrom wrote:Bump.

++ Please consider this option, Mr.Ghisler.

Thank you.
In Opera we have 3 options after closing a Tab:
Activate the last active tab.
Activate the next tab.
Activate the first tab opened tab from current Tab.

I generally need to have it set on #2 ("next"), and have never used the third. With it set to #2 I can control if it's actually Next, or Previous. And change which it should do on-the-fly.

I realize requesting to track the last-active-Tab would probably be a fair-chunk of code and debugging to follow. Whereas the option to allow us, the end-user to decide(1) which direction to close the tab, is NOT a fair-chunk of code, and likely no debugging.






(1) For anyone interested, here's how _I_ decide for opera. Though likely I'm the only one interested -- but that's ok I like my company.

Code: Select all

	XButton1::				
	{
		WinGet, aApp
		;; HackFix :: Opera > 10.10: Broken classNN
		MouseGetPos, xPos1, yPos1, aWin, aControl
		KeyWait, XButton1
		if( GetKeyState("RButton") )
			Toggle( opTabPrev, "opTabPrev" )
		else	
		if(( aControl == "SysTabControl321" ) || xPos1 <= operaTabBarSize - 2 || aApp != aWin )
			Send, #{Tab} ; Start Cycle & Focus on TaskBar
		else
			OperaCloseTab(0, opTabPrev)
	return
	}
	Shift & XButton1::	OperaCloseTab(1, opTabPrev)
}

OperaCloseTab( shiftKey, byRef checkVar )
{
	Do_xBtn("XButton1", "^{w}", checkVar, shiftKey, "^{w}^+{Tab}")
return
}

Do_xBtn( key, cmd, byRef checkVal=0, yesNo=0, cmd2="", toggleVar=0 )
{
	KeyWait, %key%
	Send, % ( checkVal == yesNo ) ? cmd : cmd2
	if( toggleVar )
		Toggle(checkVal)
return
}

Toggle(byRef onOff, displayVar="")
{
	onOff := ( onOff == 0 ) ? 1 : 0
	if( displayVar <> "" )
		MsgBox, ,, %displayVar%: %onOff%, 1
return onOff
}
And what all that mess means is anyones guess!

XButton1 (key above the scrollwheel) closes Opera's Tabs - by default: activating the previous tab. The default can be set to "activate next". In both cases: using the shift key (thumb button) will do the opposite of the default.