Wish: Ctl-W sholud take to tab to the left or to previous
Moderators: Hacker, petermad, Stefan2, white
-
- 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
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]
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]
You could use a small AHK script to achieve what you desire:
HTH
Roman
Code: Select all
#IfWinActive, ahk_class TTOTAL_CMD
~$^w::Send, ^+{Tab}
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.
- StickyNomad
- Power Member
- Posts: 1933
- Joined: 2004-01-10, 00:15 UTC
- Location: Germany
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
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.
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)
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.
- XPEHOPE3KA
- Power Member
- Posts: 854
- Joined: 2006-03-03, 18:23 UTC
- Location: Saint-Petersburg, Russia
-
- Member
- Posts: 107
- Joined: 2003-07-16, 22:40 UTC
- Location: Spain
Where should I right that script, please?
Thanks, Roman, for your reply, that I'm eager to apply.Hacker wrote:You could use a small AHK script to achieve what you desire:
HTHCode: Select all
#IfWinActive, ahk_class TTOTAL_CMD ~$^w::Send, ^+{Tab}
Roman
But,

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.
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
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
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.
Yes, definitely needed!SanskritFritz wrote:Speaking of wishes, i want to add the following option as well:
Activate the previously active tab when closing a tab.
Fritz, I see another heavy FireFox user in you.

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.
- SanskritFritz
- Power Member
- Posts: 3693
- Joined: 2003-07-24, 09:25 UTC
- Location: Budapest, Hungary
- StickyNomad
- Power Member
- Posts: 1933
- Joined: 2004-01-10, 00:15 UTC
- Location: Germany
@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
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
icfu,
Roman
No, that's not the problem. The problem is finding out where the user clicked. Active tab? Inactive tab? Somewhere totally else?So, not a big problem to catch a double click.
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.