Change of the action of cm_GoToRoot (Ctrl+\) inside archives

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 14898
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Change of the action of cm_GoToRoot (Ctrl+\) inside archives

Post by *petermad »

When I am in subfolders inside an archive, the only way to go back to the "root" of the archive is to navigate back, potentially through many parent directories.

It would be nice if the cm_GoToRoot command (default shortcut Ctrl+\) would go to the "root" of the archive. If already in the "root" it should go to the root of the drive as it does currently. The action could be made optional with a wincmd.ini parameter (GoToRootInArchives), or with a parameter (1) for the cm_GoToRoot command.

There could even be more options - like:
1: Go to root in archives.
2. If already in archive root, go out of archive and place cursor on archive file (like cm_GoToParent / Backspace).
3. Always go out of archive and place cursor on archive file.

In the case of nested archives cm_GoToRoot should go to the "root" of the top level archive - if feasible.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
AntonyD
Power Member
Power Member
Posts: 1252
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives

Post by *AntonyD »

++++++++++
#146217 personal license
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6527
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives

Post by *Horst.Epp »

Support ++
Windows 11 Home x64 Version 23H2 (OS Build 22631.3672)
TC 11.03 x64 / x86
Everything 1.5.0.1378a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
Fla$her
Power Member
Power Member
Posts: 2382
Joined: 2020-01-18, 04:03 UTC

Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives

Post by *Fla$her »

Now we have two ways:
LockedGoToDriveRoot=0
0: Click on [ \ ] switches to base directory of the locked tab
1: Click on [ \ ] switches to root directory of the drive
I don't want to go to the root of the archive instead of the usual return to the root of the locked tab. It's better to assign Ctrl+Shift+\.
Overquoting is evil! 👎
User avatar
Hacker
Moderator
Moderator
Posts: 13085
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives

Post by *Hacker »

petermad,
I dunno, wouldn't a new internal command(s) be better than creating options for the current one? What if I sometimes want to go to the root of the archive, but another time to the root of the drive?

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
funkymonk
Senior Member
Senior Member
Posts: 418
Joined: 2013-12-04, 09:56 UTC

Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives

Post by *funkymonk »

Support++
for petermad's suggestion!

I would not introduce a new internal command (e.g., because this would require 2 shortcuts or even 2 gui elements).
Instead, I support the idea of choosing the behavior of cm_GotoRoot via a parameter (or an ini parameter).
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3308
Joined: 2003-05-06, 11:46 UTC

Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives

Post by *Sir_SiLvA »

Hacker wrote: 2023-06-21, 12:20 UTC I dunno, wouldn't a new internal command(s) be better than creating options for the current one? What if I sometimes want to go to the root of the archive, but another time to the root of the drive?
100% agree with this.
Hoecker sie sind raus!
User avatar
petermad
Power Member
Power Member
Posts: 14898
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives

Post by *petermad »

I dunno, wouldn't a new internal command(s) be better than creating options for the current one? What if I sometimes want to go to the root of the archive, but another time to the root of the drive?
My main reason for not asking for a new command is that it requires translation (wcmd_XXX.inc files) and the translatorts have already been contacted for TC 11.00.

Anyway if it was made with a parameter for the current cm_GoToRoot command (not a wincmd.ini parameter), you could always just make yourself an em_command with cm_GoToRoot 1, and assign that to a hotkey of your choice (fx. Ctrl+Shift+\) - hell you don't even have to go via an em_command for creating shortcuts for cm_command with parameters anymore.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 14898
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives

Post by *petermad »

Fla$her wrote: 2023-06-21, 11:41 UTC Now we have two ways:
LockedGoToDriveRoot=0
0: Click on [ \ ] switches to base directory of the locked tab
1: Click on [ \ ] switches to root directory of the drive
What has locked tabs to do with this - I rarely use tabs, and never locked tabs.

Fla$her wrote: I don't want to go to the root of the archive instead of the usual return to the root of the locked tab. It's better to assign Ctrl+Shift+\.
Hence the request to make it optional - either via wincmd.ini parameter or vis cm_command parameter (I would prefer the latter)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3308
Joined: 2003-05-06, 11:46 UTC

Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives

Post by *Sir_SiLvA »

petermad wrote: 2023-06-21, 14:02 UTC Anyway if it was made with a parameter for the current cm_GoToRoot command (not a wincmd.ini parameter), you could always just make yourself an em_command with cm_GoToRoot 1, and assign that to a hotkey of your choice (fx. Ctrl+Shift+\) - hell you don't even have to go via an em_command for creating shortcuts for cm_command with parameters anymore.
As long as the MainMenu doesnt support commands with parameters you still have to make ems :-/
Hoecker sie sind raus!
Fla$her
Power Member
Power Member
Posts: 2382
Joined: 2020-01-18, 04:03 UTC

Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives

Post by *Fla$her »

petermad wrote: 2023-06-21, 14:09 UTC What has locked tabs to do with this - I rarely use tabs, and never locked tabs.
The most direct. I use partially locked tabs on a regular basis.
cm_GoToRoot, clicking on the button [\], CTRL+\ by default jump to the root of such a tab.
petermad wrote: 2023-06-21, 14:09 UTC Hence the request to make it optional - either via wincmd.ini parameter or vis cm_command parameter (I would prefer the latter)
The parameter to the command is the best option here.
I probably wouldn't count on 11.00 already, considering that even the agreed things were not included in the latest betas.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48203
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives

Post by *ghisler(Author) »

Just press Ctrl+B (branch view) twice.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14898
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives

Post by *petermad »

Just press Ctrl+B (branch view) twice.
Smart - thought it might be slow if I was in a dir with a lot of subdirs - but is seems faster that on the local harddisk.

I also realized that I can use Ctrl+R/F2 to go to the directory that holds the archive file - the cursor is not placed on the archive though.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48203
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives

Post by *ghisler(Author) »

The archive is cached as a whole, so Ctrl+B should be very fast.
Author of Total Commander
https://www.ghisler.com
Post Reply