Left/right tab after closing another tab

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
František Horálek
Junior Member
Junior Member
Posts: 19
Joined: 2008-06-27, 07:34 UTC

Left/right tab after closing another tab

Post 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.
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post 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)
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
JohnFredC
Power Member
Power Member
Posts: 886
Joined: 2003-03-14, 13:37 UTC
Location: Sarasota Florida

Post 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.
Licensed, Mouse-Centric, moving (slowly) toward Touch-centric
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

Bump.

++ Please consider this option, Mr.Ghisler.

Thank you.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post 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.
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post 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
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post 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.
Post Reply