Wish: Ctl-W sholud take to tab to the left or to previous

English support forum

Moderators: Hacker, petermad, Stefan2, white

Hammillian7
Member
Member
Posts: 107
Joined: 2003-07-16, 22:40 UTC
Location: Spain

Wish: Ctl-W sholud take to tab to the left or to previous

Post by *Hammillian7 »

To be brief, I think it would be more conveniente and more right that, when I delete a TAB (for example, with Ctl-W), TC would take me to the TAB to the left of the deleted one, instead of to the right, as it does now.

Why?: because if I'm on a (let's say) base TAB, from where I'm working, and create a new TAB (for example, to manually walk subdirs or archives), when I delete the new TAB (for me, subTAB), I want to get back to my base TAB, to, for example, go on with my walking of subdirs (for this, I have selected the option to "Open new tab near current tab"). I don't like to have to type Ctl-Shift-Tab after closing each temporary TAB I open. I know (and I already use) several other ways of doing it, but I think in many cases the behaviour I propose would be the fastest and clearest and most natural and correct.

In other words: if Clt-T (or Ctl-up arrow) does something (create a new TAB and take me there), Ctl-W should UNDO that "something": delete the new TAB AND TAKE ME TO THE PREVIOUS TAB. I understand that this "previous" may be ambiguous when the TAB I'm in is not the last created one and that's why I propose to take "the previous" as "the one to the left".

I've already read some posts about the complex question of tab navigation and acknowledge that there may be many different cases (mainly, for this matter, locked or not TABs, TAB creation next to the current or to the extreme right), but I think, for this case, it's simple and clear.

The only exception, I think, that I would acknowledge as better to the one I propose would be, just when "Open new tab near current tab" is unselected, to go back to the previously visited TAB.

Or is there a configuration option that I don't know to get this behaviour?

Thanks a lot!.

[mod]Thread split from A question about V6.0 and a BUG maybe.

Hacker (Moderator)[/mod]
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

You could use a small AHK script to achieve what you desire:

Code: Select all

#IfWinActive, ahk_class TTOTAL_CMD
~$^w::Send, ^+{Tab}
HTH
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
StickyNomad
Power Member
Power Member
Posts: 1933
Joined: 2004-01-10, 00:15 UTC
Location: Germany

Post by *StickyNomad »

Hm, I didn't miss that feature until now, but indeed it could be useful if it was configureable whether the tab to the left or to the right of a closed tab should be activated.

There's also some room left for that option in the configuration dialog, so perhaps sth like

Code: Select all

[ ] activate tab left to a closed tab after closing it (default: acivate tab to the right)
could be added.

I see no big urge for that feature though (and thanks anyway for your script, Hacker!), but shouldn't be hard to implement and would be a nice addition IMHO.
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

It's NOT needed to be configureable at all. Just change the behaviour, Christian, and I'm pretty sure almost noone will notice that :D
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
Hammillian7
Member
Member
Posts: 107
Joined: 2003-07-16, 22:40 UTC
Location: Spain

Where should I right that script, please?

Post by *Hammillian7 »

Hacker wrote:You could use a small AHK script to achieve what you desire:

Code: Select all

#IfWinActive, ahk_class TTOTAL_CMD
~$^w::Send, ^+{Tab}
HTH
Roman
Thanks, Roman, for your reply, that I'm eager to apply.

But, :? where should I write that script?

Indeed, if it's a universal solution, it would correct the TC behaviour enough, making unnecessary any change to it (unless it had to be done in each machine I run TC on, in which case it would be easier to have it in TC).

Even more than that: if, as its syntax makes me imagine, it's applicable to other applications, it could be a gold mine :) !.

I await your answer.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

This account is for sale
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

if, as its syntax makes me imagine, it's applicable to other applications, it could be a gold mine Smile !.
Now that statement is very true!
I switched to Linux, bye and thanks for all the fish!
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

Speaking of wishes, i want to add the following option as well:
Activate the previously active tab when closing a tab.
I switched to Linux, bye and thanks for all the fish!
User avatar
gbo
Senior Member
Senior Member
Posts: 329
Joined: 2005-03-31, 19:58 UTC
Location: Lausanne (Switzerland)

Post by *gbo »

Would it be possible to modify the script so that when a tab is closed with double click the script also activates the left tab?

TIA
Gil
Licence #17346

90% of coding is debugging. The other 10% is writing bugs.
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

gbo,
For me, no, as there is no easy function in AHK to catch such a double-click. However, majkinetor ! has written the necessary code for the FavMenu, so perhaps if you ask him nicely, he might add it to this script, too.

[EDIT: After reading majki's solution, I am not sure if it would work, since the tab header controls seem to return inconsistent names to AHK and there doesn't seem any obvious way to find out if the double click was made on the active tab header or somewhere else.]

HTH
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
szlori
Senior Member
Senior Member
Posts: 263
Joined: 2005-01-17, 07:12 UTC
Location: Sydney

Post by *szlori »

SanskritFritz wrote:Speaking of wishes, i want to add the following option as well:
Activate the previously active tab when closing a tab.
Yes, definitely needed!
Fritz, I see another heavy FireFox user in you. :wink:

And I think at least this should be configurable.
Either go to left or the previously active Tab.
Of course this should work indifferently of how (keyboard/mouse) you close the Tab.
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

Fritz, I see another heavy FireFox user in you.
Tab Mix Plus rulez :-)
I switched to Linux, bye and thanks for all the fish!
User avatar
StickyNomad
Power Member
Power Member
Posts: 1933
Joined: 2004-01-10, 00:15 UTC
Location: Germany

Post by *StickyNomad »

2SanskritFritz
Tab Mix Plus rulez
Absolutely! I can't imagine using FF without it any more. :)
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

@Hacker:
In the script http://www.ghisler.ch/wiki/index.php/AutoHotkey:_Go_To_Parent_Directory_When_Doubleclicking_Border there is an easy solution implemented.

So, not a big problem to catch a double click.

Icfu
This account is for sale
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

icfu,
So, not a big problem to catch a double click.
No, that's not the problem. The problem is finding out where the user clicked. Active tab? Inactive tab? Somewhere totally else?

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