Add a new command for "Switch to last visited tab" so that it's separate from "SwitchToNextTab"

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Jorge24
Junior Member
Junior Member
Posts: 53
Joined: 2016-11-06, 18:14 UTC
Location: USA

Add a new command for "Switch to last visited tab" so that it's separate from "SwitchToNextTab"

Post by *Jorge24 »

I currently have custom keybinds so that going to the next/prev tab works like in Firefox:
Ctrl+PageUp = cm_SwitchToPreviousTab
Ctrl+PageDown = cm_SwitchToNextTab

When I enabled the new option from TC v11.50 called "Ctrl+Tab switches to last visited" it changed the behavior of my custom keybind Ctrl+PageDown to "go to the last visited tab" instead of keeping it as "go to the next tab".

I would like to request that the behavior to go to the last tab gets its own command as well so that I can set have this setup:
Ctrl+PageDown = go to next tab
Ctrl+Tab = go to the last tab



Or maybe it's less work to create a new command that goes to the next tab ALWAYS and doesn't get overwritten by the option to go to the last visited tab?
Example:
Ctrl+Tab = cm_SwitchToNextTab (goes to the last visited tab when the option is enabled, like it currently does)
Ctrl+PageDown = cm_SwitchToNextTabAlways (new command that always goes to the next tab even when "Switch to last visited tab" is enabled)
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6950
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Add a new command for "Switch to last visited tab" so that it's separate from "SwitchToNextTab"

Post by *Horst.Epp »

Ctrl-Page-Down is already assigned to enter an archive.
I guess most users like this function more than your suggestion.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Jorge24
Junior Member
Junior Member
Posts: 53
Joined: 2016-11-06, 18:14 UTC
Location: USA

Re: Add a new command for "Switch to last visited tab" so that it's separate from "SwitchToNextTab"

Post by *Jorge24 »

I'm not saying that we should change the default behavior or Ctrl+PageDown, that was just my example.

I'm suggesting to give users the ability to have separate keybinds for "going to last visited tab" and "going to the next tab".

Currently, since there's only one command, enabling the "last tab" option means that if you want to go to the next tab instead of the last tab, you have to press the shortcut twice but if you want to go to the previous tab you only press the shortcut once. It's inconsistent.
Jorge24
Junior Member
Junior Member
Posts: 53
Joined: 2016-11-06, 18:14 UTC
Location: USA

Re: Add a new command for "Switch to last visited tab" so that it's separate from "SwitchToNextTab"

Post by *Jorge24 »

On today's 11.51 update notes it says:
New parameters for internal command cm_SwitchToNextTab, e.g. to switch to last visited tab
However, what's the parameter? Am I supposed to read a certain file and find what that is?
I want to set up Ctrl+PageDown to go to the Next Tab and Ctrl+Tab to go to the last selected tab.
Jorge24
Junior Member
Junior Member
Posts: 53
Joined: 2016-11-06, 18:14 UTC
Location: USA

Re: Add a new command for "Switch to last visited tab" so that it's separate from "SwitchToNextTab"

Post by *Jorge24 »

I figured out that the parameter for going to the last tab is "1" by trial an error although it'd still be nice to know if there's a way to see what the parameters are for each command.

Btw, thanks for adding this! I finally have all the hotkeys I always wanted for this software!
sa16
Senior Member
Senior Member
Posts: 324
Joined: 2021-09-10, 07:15 UTC

Re: Add a new command for "Switch to last visited tab" so that it's separate from "SwitchToNextTab"

Post by *sa16 »

2Jorge24
if there's a way to see what the parameters are for each command.
Button:

Code: Select all

TOTALCMD#BAR#DATA
hh.exe %COMMANDER_PATH%\TOTALCMD.CHM::dlg_choosecommand.htm

%COMMANDER_PATH%\TOTALCMD.CHM
Open Help for Choose Commands (cm_commands with parameters)
Jorge24
Junior Member
Junior Member
Posts: 53
Joined: 2016-11-06, 18:14 UTC
Location: USA

Re: Add a new command for "Switch to last visited tab" so that it's separate from "SwitchToNextTab"

Post by *Jorge24 »

oh nice, thanks!
Post Reply