TC 9.50b5 | Cursor not moved to a newly created dir with trailing dot sign in the dir name

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
RADiCAL
Junior Member
Junior Member
Posts: 73
Joined: 2003-10-16, 18:57 UTC

TC 9.50b5 | Cursor not moved to a newly created dir with trailing dot sign in the dir name

Post by *RADiCAL »

Usually, when creating a new dir, the cursor will move to that dir on the list. It will also move if the dir name already exists: it will move after the error message dialog box.

However (description of the bug), when creating a directory with a trailing dot sign, the cursor stays on the same dir that as before.
It does not matter how many separating dot signs will be in the name of the newly created dir, but as long as the last character is a dot sign, this is exactly the outcome.

The issue occurs when creating dir on the other pane (Shift+F7).

I am using Win10x64 with TC 9.50b5.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC 9.50b5 | Cursor not moved to a newly created dir with trailing dot sign in the dir name

Post by *ghisler(Author) »

The dot gets removed by Windows because it's not allowed.
Author of Total Commander
https://www.ghisler.com
User avatar
RADiCAL
Junior Member
Junior Member
Posts: 73
Joined: 2003-10-16, 18:57 UTC

Re: TC 9.50b5 | Cursor not moved to a newly created dir with trailing dot sign in the dir name

Post by *RADiCAL »

I see. That is insignificant to me. The side effect of this is that the cursor in TC does not move. Will that be fixed?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6481
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: TC 9.50b5 | Cursor not moved to a newly created dir with trailing dot sign in the dir name

Post by *Horst.Epp »

RADiCAL wrote: 2019-11-15, 19:58 UTC I see. That is insignificant to me. The side effect of this is that the cursor in TC does not move. Will that be fixed?
Why should the cursor moved to an entry which is not allowed at all ?
Nothing to fix
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
TC 11.03 x64 / x86
Everything 1.5.0.1372a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
Hacker
Moderator
Moderator
Posts: 13064
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: TC 9.50b5 | Cursor not moved to a newly created dir with trailing dot sign in the dir name

Post by *Hacker »

Horst.Epp,
The entry is created, just without the dot at the end. Try it out yourself:
F7 - Test - Enter -> cursor is moved to the newly created folder "Test"
F7 - Test. - Enter -> cursor is not moved to the newly created folder "Test"

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
Horst.Epp
Power Member
Power Member
Posts: 6481
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: TC 9.50b5 | Cursor not moved to a newly created dir with trailing dot sign in the dir name

Post by *Horst.Epp »

Hacker wrote: 2019-11-16, 09:50 UTC Horst.Epp,
The entry is created, just without the dot at the end. Try it out yourself:
F7 - Test - Enter -> cursor is moved to the newly created folder "Test"
F7 - Test. - Enter -> cursor is not moved to the newly created folder "Test"

Roman
I know, but for me there is still no need to react to such illegal entries in any normal way.
Why shouild I enter a trailing dot when this can never be stored ?
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
TC 11.03 x64 / x86
Everything 1.5.0.1372a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: TC 9.50b5 | Cursor not moved to a newly created dir with trailing dot sign in the dir name

Post by *DrShark »

Horst.Epp wrote: 2019-11-16, 13:49 UTCWhy shouild I enter a trailing dot when this can never be stored ?
It may be a typo.
Horst.Epp wrote: 2019-11-16, 13:49 UTCfor me there is still no need to react to such illegal entries in any normal way.
A cursor jump to a foder with different name which has been created after such operation will let user be aware of a fact that folder creation happened, and it will be faster for user to do a further action on it (leave, rename, delete) if it will have a focus after creation.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
Hacker
Moderator
Moderator
Posts: 13064
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: TC 9.50b5 | Cursor not moved to a newly created dir with trailing dot sign in the dir name

Post by *Hacker »

Horst.Epp,
Everything DrShark wrote.

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
petermad
Power Member
Power Member
Posts: 14793
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: TC 9.50b5 | Cursor not moved to a newly created dir with trailing dot sign in the dir name

Post by *petermad »

If I make a dir with a trailing dot on my FTP-sites, TC places the curser on that dir (which actially do have a dot).

TC tries to go to the dir that the user orders - it is not TC's fault that the OS disregards the order for the local filesystem, so there is no matching dir to go to after the creation.

But of course as a help to the thick-fingered user, TC could be made to recognize that the OS is Windows and the current dir is local and remove the trailing dot before dir creation.
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
RADiCAL
Junior Member
Junior Member
Posts: 73
Joined: 2003-10-16, 18:57 UTC

Re: TC 9.50b5 | Cursor not moved to a newly created dir with trailing dot sign in the dir name

Post by *RADiCAL »

I second Hacker and DrShark's explanations.
Consistency is key.

The dot is removed by Windows, as Christian said, and also this is the behavior if you do it in Explorer.
TC should have a behavior as close as possible to the OS, which in that particular "dot" case, it does.

In Win, there is already a placeholder with "New folder" name ready (if a dir with that "special" name already exists it will add " (X)" suffix where X starts with 2). Once you decided to create a folder, it is created even if you press ESC.
Personally I hate that. Objectively, dialog box is more user-friendly than first creating the dir and then letting the user change it.

In TC, this whole process is conducted throught the dialog box.
Post Reply