Proposal foldername with new folder

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Waldi-X
Junior Member
Junior Member
Posts: 25
Joined: 2016-07-10, 09:33 UTC

Proposal foldername with new folder

Post by *Waldi-X »

Now with the click on the button for a new folder the following behaviour is given:
- The cursor stands on a file: Of the file names is suggested as new folder names --> very well!

- The cursor stands on a folder: These foldername is suggested
--> Unwanted, because there is this name already!
My change wish:
a) If the name contains a number, 1 is simply added to it
e.g., with "20160709-XY" becomes "20160710-XY", or
with "ABC-99-xyz" becomes "ABC-100-xyz"
b) If the name contains no number, "name&'-1'" or the similar will suggest
e.g., with "XYZ" becomes "XYZ-1"

Thanks a lot
Waldi-X
User avatar
Dalai
Power Member
Power Member
Posts: 10024
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

You are not taking all facts into account: What happens when you have a file with a number in its name and you want to create a folder with exactly that name (extension removed of course)? Something like 20160709-XY.txt and you want to create a directory named 20160709-XY.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Waldi-X
Junior Member
Junior Member
Posts: 25
Joined: 2016-07-10, 09:33 UTC

Post by *Waldi-X »

Dalai wrote:You are not taking all facts into account: What happens when you have a file with a number in its name and you want to create a folder with exactly that name (extension removed of course)? Something like 20160709-XY.txt and you want to create a directory named 20160709-XY.
Hi,
did you read my second line?

---- - The cursor stands on a file: Of the file names is suggested as new folder names --> very well!

That's exactly what you mean.

Regards
Waldi-X
User avatar
Dalai
Power Member
Power Member
Posts: 10024
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

Ah, I missed that one.

Still, it's not a good suggestion, because you'd expect TC to prefill the edit box with the existing directory name that's supposed to be changed by the user - simple as that. Why am I saying this? You wish to increment the number somewhere in the file name, other users wish TC to add some pre-/postfix automatically, while others want some different changes to the name, fitting their purpose and directory structure. I hope you get my point. There's too many possibilities here and only one of them could be satisfied (at a time).

Even more, take this example: The user wants to create a directory based on the existing directory name, manually adding some prefix/postfix in the process. With your suggestion, the user would need to revert the changes TC made to the number, in the middle of the file name (worst case).

You could argue that it would be possible to add some setting to wincmd.ini that covers all possible cases, but I'm quite sure that it would not cover all of them, and the user would forget about having set this setting, like is already the case with e.g. CopyLinks.


Maybe extDir utility allows to do what you want (don't know since I don't use it). Or, if you regularly create directories based on some particular naming scheme, you could write a script (or ask in the forum to get help with that).

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Waldi-X
Junior Member
Junior Member
Posts: 25
Joined: 2016-07-10, 09:33 UTC

Post by *Waldi-X »

Dalai wrote:Ah, I missed that one.

Still, it's not a good suggestion ...
Unfortunately, you have rejected my sensible proposal. However, I do not give up hope that at last, nevertheless, everybody profits from: To raise DIR-name with figures completely on the left or at the end by 1. With my called exceptions.
Thank you very much.
TC-User since 1993
Post Reply