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: 7007
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.4351)
TC 11.55 RC6 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.3 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: 344
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!
User avatar
Native2904
Member
Member
Posts: 183
Joined: 2014-01-30, 14:23 UTC
Location: Aachen

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

Post by *Native2904 »

sa16 wrote: 2025-02-20, 05:23 UTC 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)
is there a way to show the manual with the RegEx syntax as Buttonbar/Bookmark?
Glückauf
#270101 Single user licence.

Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz | 16,00 GB | Windows 10 Pro 22H2
User avatar
white
Power Member
Power Member
Posts: 5964
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

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

Post by *white »

Native2904 wrote: 2025-05-27, 09:17 UTC is there a way to show the manual with the RegEx syntax as Buttonbar/Bookmark?
To find the URL of the html help page of any displayed page, click the icon in the title bar of the help window (upper left corner) and select "Jump to URL.."
User avatar
Native2904
Member
Member
Posts: 183
Joined: 2014-01-30, 14:23 UTC
Location: Aachen

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

Post by *Native2904 »

2*white
Thank you.
Glückauf
#270101 Single user licence.

Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz | 16,00 GB | Windows 10 Pro 22H2
User avatar
petermad
Power Member
Power Member
Posts: 16096
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

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

Post by *petermad »

is there a way to show the manual with the RegEx syntax as Buttonbar/Bookmark?

Code: Select all

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

%COMMANDER_PATH%\TOTALCMD.CHM
Open Help for Regular Expressions


-1
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Native2904
Member
Member
Posts: 183
Joined: 2014-01-30, 14:23 UTC
Location: Aachen

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

Post by *Native2904 »

2*petermad
Thx 2.
Glückauf
#270101 Single user licence.

Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz | 16,00 GB | Windows 10 Pro 22H2
Post Reply