Page 1 of 1

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

Posted: 2025-01-03, 17:20 UTC
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)

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

Posted: 2025-01-03, 17:24 UTC
by Horst.Epp
Ctrl-Page-Down is already assigned to enter an archive.
I guess most users like this function more than your suggestion.

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

Posted: 2025-01-03, 20:04 UTC
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.

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

Posted: 2025-02-20, 03:19 UTC
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.

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

Posted: 2025-02-20, 03:23 UTC
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!

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

Posted: 2025-02-20, 05:23 UTC
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)

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

Posted: 2025-02-20, 22:11 UTC
by Jorge24
oh nice, thanks!