Changing the virtual path to the last absolute path if there is no GUID

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Changing the virtual path to the last absolute path if there is no GUID

Post by *Fla$her »

1. cd C:\Windows
2. cd ::
3. cm_OpenNetwork
4. cd ::{450D8FBA-AD25-11D0-98A8-0800361B1103}
5. cd ::{D20EA4E1-3957-11d2-A40B-0C5020524153}
6. cd ::{} or cd ::{BLABLA} >>> 1.

It's expected that there will be no path change in case of an error.
Overquoting is evil! πŸ‘Ž
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Changing the virtual path to the last absolute path if there is no GUID

Post by *petermad »

Agreed, but then there should be an error displayed: "directory not found!" - currently the loading of the last physical directory, gives an indication that there has been a fault.
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
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: Changing the virtual path to the last absolute path if there is no GUID

Post by *Fla$her »

If I execute cd C:\path\nopath, then it will open C:\path, there will be no indication of an error.
If I specify a non-existent drive (cd W:\blabla), then also no windows will appear.
Overquoting is evil! πŸ‘Ž
JOUBE
Power Member
Power Member
Posts: 1477
Joined: 2004-07-08, 08:58 UTC

Re: Changing the virtual path to the last absolute path if there is no GUID

Post by *JOUBE »

Fla$her wrote: ↑2024-02-03, 01:04 UTC If I execute cd C:\path\nopath, then it will open C:\path, there will be no indication of an error.
If I specify a non-existent drive (cd W:\blabla), then also no windows will appear.
That's easy: Then don't do either of those things.

Really: Who does something like that?

And if he does, he will immediately notice his own mistake...

TC is a GUI file manager...
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: Changing the virtual path to the last absolute path if there is no GUID

Post by *Fla$her »

2JOUBE
This is a section about bugs, not about who and what can/wants to do or not do here.
JOUBE wrote: ↑2024-02-03, 02:36 UTCAnd if he does, he will immediately notice his own mistake...
So you approve of my counterargument? >>>
petermad wrote: ↑2024-02-03, 00:52 UTC... there should be an error displayed: "directory not found!"
>>>
Fla$her wrote: ↑2024-02-03, 01:04 UTC ... there will be no indication of an error.
Overquoting is evil! πŸ‘Ž
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Changing the virtual path to the last absolute path if there is no GUID

Post by *petermad »

2Fla$her
If I specify a non-existent drive (cd W:\blabla), then also no windows will appear.
That depends on the setting of IgnoreDirErrors.
With IgnoreDirErrors=1 I get a dialog box:

--------------------------------------
ERROR!
--------------------------------------
Drive not found W:
Please chose another: [ ]
[OK] [Cancel]
--------------------------------------

And if I perform cd: W: - and W: does not exist. I get a the same dialog box if I am in the root of a drive. If I am in a subdirectory
I get a message in the file panel saying: <Read error!>
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
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: Changing the virtual path to the last absolute path if there is no GUID

Post by *Fla$her »

2petermad
Good. So, in this case, your wish should be related to the non-default value of 1 of the given key.
I think this would have been provided for without our meddling. ;)
Overquoting is evil! πŸ‘Ž
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Changing the virtual path to the last absolute path if there is no GUID

Post by *ghisler(Author) »

cd ::INVALID
returns to the last local directory. Currently there are no plans to change this behavior.

Moderator message

Moved to suggestions
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: Changing the virtual path to the last absolute path if there is no GUID

Post by *Fla$her »

2ghisler(Author)
What is the reason for the choice of such unexpected behavior by users?
Why leave such a mismatch with cd <INVALID DRIVE>:\... ?
Last edited by Fla$her on 2024-02-16, 02:05 UTC, edited 1 time in total.
Overquoting is evil! πŸ‘Ž
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Changing the virtual path to the last absolute path if there is no GUID

Post by *ghisler(Author) »

Total Commander always needs to show a valid directory. When a cd command fails, TC returns to the last local directory it knows. Since virtual folders can be anything, including network folders, it's not guaranteed that you can return to it when trying to go to a different virtual folder fails.

The option IgnoreDirErrors=1 only supports directories with a path (drive letter or UNC), not virtual folders. Making it work with virtual folders isn't easy, it would take weeks to make it work properly.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: Changing the virtual path to the last absolute path if there is no GUID

Post by *Fla$her »

Look at what I wrote:
Fla$her wrote: ↑2024-02-02, 23:44 UTC It's expected that there will be no path change in case of an error.
This is the current behavior after cd <INVALID DRIVE>:\. I didn't suggest trying to go back to the virtual folder. I'm asking you to remove the discrepancy by eliminating the need to search and navigate to a local folder.

PS: I think the bugs section is more appropriate for inconsistencies.
Overquoting is evil! πŸ‘Ž
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Changing the virtual path to the last absolute path if there is no GUID

Post by *ghisler(Author) »

No path change is currently only supported in a regular directory, not in a virtual folder, sorry.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: Changing the virtual path to the last absolute path if there is no GUID

Post by *Fla$her »

Don't you think it's strange what you wrote? Logically, regular folders should be a priority for users and the file manager.
But that's not the point. From the point of view of usability, why go to the previous local folder in case of an error, if it's much better to leave the current one, whatever it is?
Overquoting is evil! πŸ‘Ž
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6497
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Changing the virtual path to the last absolute path if there is no GUID

Post by *Horst.Epp »

Fla$her wrote: ↑2024-02-05, 10:40 UTC From the point of view of usability, why go to the previous local folder in case of an error, if it's much better to leave the current one, whatever it is?
Fully agree.
TC should stay where it was before trying the failed path.
There should be an error message in this case to warn the user.
Last edited by Horst.Epp on 2024-02-05, 13:59 UTC, edited 1 time in total.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Changing the virtual path to the last absolute path if there is no GUID

Post by *petermad »

if it's much better to leave the current one, whatever it is?
I agree - but if no folder change is taking place - I still think a message about not being able to go to the dir would be a good idea - otherwise you might end up trying to change the directory several times before you realize it is prevented by TC.
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
Post Reply