Page 1 of 1
Change of the action of cm_GoToRoot (Ctrl+\) inside archives
Posted: 2023-06-21, 10:30 UTC
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.
Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives
Posted: 2023-06-21, 11:05 UTC
by AntonyD
++++++++++
Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives
Posted: 2023-06-21, 11:26 UTC
by Horst.Epp
Support ++
Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives
Posted: 2023-06-21, 11:41 UTC
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+\.
Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives
Posted: 2023-06-21, 12:20 UTC
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
Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives
Posted: 2023-06-21, 13:17 UTC
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).
Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives
Posted: 2023-06-21, 13:21 UTC
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.
Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives
Posted: 2023-06-21, 14:02 UTC
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.
Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives
Posted: 2023-06-21, 14:09 UTC
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)
Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives
Posted: 2023-06-21, 14:15 UTC
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 :-/
Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives
Posted: 2023-06-21, 14:21 UTC
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.
Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives
Posted: 2023-06-22, 09:27 UTC
by ghisler(Author)
Just press Ctrl+B (branch view) twice.
Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives
Posted: 2023-06-22, 10:45 UTC
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.
Re: Change of the action of cm_GoToRoot (Ctrl+\) inside archives
Posted: 2023-06-22, 11:00 UTC
by ghisler(Author)
The archive is cached as a whole, so Ctrl+B should be very fast.