This forum uses cookies. Click X button to hide this message. What is stored? 
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Changing the fractional counter in MRT

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC suggestions (English) Printable version
View previous topic :: View next topic  
Author Message
Rodny
Junior Member
Junior Member


Joined: 30 Jan 2007
Posts: 16
Location: Belarus

PostPosted: Thu Mar 06, 2014 2:25 pm    Post subject: Changing the fractional counter in MRT Reply with quote

I think that the current implementation of this option does not quite match the existing options.
Help TC 8.51 beta 2 wrote:
[C+1/100] New: Fractional number: Paste counter, but increase it only every n files (in this example: every 100 files).

Earlier parameter [C+n] was always interpreted as a step "n". After this example I expected that the option [C+3/10][N] will add to first 10 files "1", to second 10 - "4" and so on.
Instead, I got the files with first numbers:
1 1 1 1 2 2 2 3 3 3
4 4 4 4 5 5 5 6 6 6
7 7 7 7 8 8 8 9 9 9
...
It is a little confusing.
The counter is incremented by a fraction 0.3. What's the practical sense? Because it means that all options except 1/n is pointless and inconvenient to use.

I suggest to change the logic of this parameter so that [C+n/m] will mean: the counter will increase by "n" after every m files.
Back to top
View user's profile Send private message
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 7915
Location: Russian Federation

PostPosted: Thu Mar 06, 2014 11:33 pm    Post subject: Re: Changing the fractional counter in MRT Reply with quote

Rodny wrote:
I suggest to change the logic of this parameter so that [C+n/m] will mean: the counter will increase by "n" after every m files.

I agree that it is much more logical and useful.
_________________
TCFS2 + TCFS2Tools: Full-screen mode for TC etc (forum)
TOTALCMD.NET: AskParam, CopyTree, NTLinks, Sudo, VirtualPanel…
Back to top
View user's profile Send private message Send e-mail
solid
Power Member
Power Member


Joined: 09 Aug 2004
Posts: 528

PostPosted: Fri Mar 07, 2014 6:07 am    Post subject: Reply with quote

I agree also.
Rounding of fractions converted to decimal can provide unexpected results like in your example with 3 or any other number which doesn't result to exact number (fractions od 6,7,9 etc...)
Or maybe someone has idea for practical use of such implementation?
Back to top
View user's profile Send private message Send e-mail
Ovg
Senior Member
Senior Member


Joined: 06 Jan 2014
Posts: 485

PostPosted: Fri Mar 07, 2014 8:35 am    Post subject: Reply with quote

2solid

ghisler(Author) wrote in history file:
Quote:
Multi-rename tool: The counter field [C] now supports fractional parts (only in the field itself, not in the counter section), e.g. [C+1/100]\[N] will move the first 100 files to subdir "1", the next 100 to "2" etc. (for the reverse, use ..\[N]) (32/64)


But I agree with written by MVV and Rodny and if mr. Ghisler implements their suggestions it will be great.
_________________
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.12 RC4 x64, Windows 7 SP1 x64
Back to top
View user's profile Send private message Send e-mail
Rodny
Junior Member
Junior Member


Joined: 30 Jan 2007
Posts: 16
Location: Belarus

PostPosted: Fri Mar 07, 2014 10:31 am    Post subject: Reply with quote

2Ovg
If to implement my suggestion, then [C+1/100]\[N] will function as before, no difference.
Back to top
View user's profile Send private message
Ovg
Senior Member
Senior Member


Joined: 06 Jan 2014
Posts: 485

PostPosted: Fri Mar 07, 2014 10:58 am    Post subject: Reply with quote

Embarassed It seems I have confused "rename files" and "select files". Sorry!
_________________
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.12 RC4 x64, Windows 7 SP1 x64
Back to top
View user's profile Send private message Send e-mail
solid
Power Member
Power Member


Joined: 09 Aug 2004
Posts: 528

PostPosted: Mon Mar 10, 2014 9:24 am    Post subject: Reply with quote

I think that the best solution is to introduce the DIV and MOD operators instead of fractions as those can be unpredictable as seen.
Besides the features discussed above, it will also be possible to reset the counter on the desired value, a feature asked for a long time ago.
Back to top
View user's profile Send private message Send e-mail
EvilDragon
Junior Member
Junior Member


Joined: 09 Aug 2016
Posts: 19

PostPosted: Mon Sep 18, 2017 6:54 am    Post subject: Re: Changing the fractional counter in MRT Reply with quote

Rodny wrote:
I suggest to change the logic of this parameter so that [C+n/m] will mean: the counter will increase by "n" after every m files.


I just discovered the fractional number option, but I also don't like how it works.

I would expect to be able to set the step size as well as after how many files the number is incremented.

I need to convert filenames so that they contain a certain number in their filename, it has to be the same every 3 files, and then it needs to increase by 2. Not possible with this scheme...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC suggestions (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group