Page 1 of 1

New Tab Opening Position Enhancement

Posted: 09 Jan 2015 17:19
by Stef123
Taking it more literally in terms of layout position, is there a tweak to add the new tab next to the current tab? I don't mean the global setting, I still want to be able to add a new tab at the very end. What I have in mind is a "smart" solution based on context. If I travel to the very end to dbl-click the empty space I want it there on purpose. But when I right-click a tab, I want the new tab right next to it, where it belongs. Any way to achieve that? An undocumented modifier key, an ini tweak?

Re: How do you define the location for new tabs?

Posted: 09 Jan 2015 18:41
by eil
doesn't it already work like this?! when i use middle-click on folder it's opened in new tab next to current. and when i use ctrl+t it opens new tab next to current with same path.

Re: How do you define the location for new tabs?

Posted: 09 Jan 2015 19:31
by klownboy
Stef123 wrote:Taking it more literally in terms of layout position, is there a tweak to add the new tab next to the current tab?
Hey Stef123, I hope all is well. There is the Tools | Configuration setting under Tabs and Panes | Tabs the very first check box is, you guessed it, "Open new tab next to current" that may give you partially what you're after. It appears it makes the new tab next to the current no matter where or how you invoke New tab though.
Ken

Re: How do you define the location for new tabs?

Posted: 10 Jan 2015 11:28
by Stef123
Thanks klownboy and eil,
I was wondering if I could have both, new tab at end AND next to current, depending on where I click, or wether I click with a modifier key held down, or any other "tweak" to inverse the config-setting on a per-click basis.

It's not that important, really. Dragging tabs into place works fine, after all. I just figured there might be a quicker way to have some tabs pop up at the end, to deal with them later (not by default, though, mostly I like them next to current)

Re: How do you define the location for new tabs?

Posted: 10 Jan 2015 13:31
by PeterH
If having set "Open new Tab next to current": activate the tab in front of your wanted insert-position, then open new tab. Seems to me the most direct way.

Re: How do you define the location for new tabs?

Posted: 10 Jan 2015 15:34
by Stef123
PeterH wrote:activate the tab in front of your wanted insert-position, then open new tab. Seems to me the most direct way.
Well, direct it may be, but not practical. I'd have to start over from weird path locations, instad of building up on existing tab paths that I use as benchmark locations, taking it from there. Besides, to open tabs for later use (my todo-reminder), I'd have to scroll to the very end, then click the last tab before opening a new one, and scroll back again.

Re: How do you define the location for new tabs?

Posted: 10 Jan 2015 17:38
by klownboy
Scripting something similar to what you are talking about may be possible especially since Don just recently provided an update to SC tab which allows for easy tab moves. I suppose the script would the have to look at the locations of existing tabs and if part of the path matched the path <curpath> of the tab you'd like to establish, it would set the position of the new tab adjacent to the matching/similar existing tab. Of course it would have to be invoked by a CTB or keyboard combo, etc.

Re: How do you define the location for new tabs?

Posted: 11 Jan 2015 08:23
by Stef123
@Sammay and aliteralmind
Apologies for hi-jacking this thread. Its title seemed promising, I had struck gold before in similiar situations coming across tweaks or shortcuts or other nuggets.

@Ken
Thanks for the hint. I might actually try my hands on an easier script that pushes tabs out of the way, to the very end.

Generally speaking, it's hard to imagine a mouse user would click at the end to add a tab up front. More likely, imo, you'd expect the new tab where you clicked, its path based on the currently active tab, but not the tab position. That's what I meant by "context-related" tab locations.

For keyboard aficionados it's even easier. They could simply be provided with seperate shortcuts, one to open next to current, the other at the end.

Re: New Tab Opening Position Enhancement

Posted: 11 Jan 2015 08:31
by bdeshi