Don't add a counter to the first file for cm_Edit

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

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

Don't add a counter to the first file for cm_Edit

Post by *Fla$her »

In many programs and scripts for creating and copying files, the first file doesn't receive a counter.
Please make sure that there is the same opportunity. Let's say with /X.
For example, the parameter /CGL0XN="<5>name[_][C].ext" should give this result:

Code: Select all

name.ext
name_2.ext
name_3.ext
name_4.ext
name_5.ext
This shouldn't apply to <[2+]-N>.
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Don't add a counter to the first file for cm_Edit

Post by *petermad »

Instead of an X parameter I suggest that <-5> should be changed from making files from name_0.ext to name_5.ext it should make the files from name_.ext to name_5.ext

You can still use <0-5> to make files from name_0.ext to name_5.ext
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: Don't add a counter to the first file for cm_Edit

Post by *Fla$her »

2petermad
I don't see the connection. If the first file had 0, there would have been 6 files instead of 5.
Also note the underscore. If it is placed in square brackets, then it should also not be in the first name.
It will be easier to regulate this with a key like X. It can be a space with parentheses, for example: /CGL0XN="<5>name[ (][C][)].ext"

Code: Select all

name.ext
name (2).ext
name (3).ext
name (4).ext
name (5).ext
Overquoting is evil! 👎
Post Reply