[BUG] MRT - Replace characters.

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
Gral
Power Member
Power Member
Posts: 1468
Joined: 2005-01-26, 15:12 UTC

[BUG] MRT - Replace characters.

Post by *Gral »

I found this in HISTORY.TXT:
30.10.05 Added: Multi-rename tool: Replace characters (returned by plugins) which are not allowed in file names by underscores or dots

As for me this is bug, not feature !

This should be perform after all user actions, even search & replace !!!

I often use original url as a file comment.

Example 1.
file: tcmdr654.exe
comment: https://plugins.ghisler.com/654/tcmdr654.exe
Run MRT and set
Rename mask:file name: [=tc.comment]
Extension: (empty)
Search for: :|/
Replace with: -
New name should be: http---plugins.ghisler.com-654-tcmdr654.exe
but is: http.__plugins.ghisler.com_654_tcmdr654.exe

Example 2. (file from Netscape cache)
file: ABCDEF0101
comment: https://plugins.ghisler.com/654/tcmdr654.exe
Rename mask:file name: [=tc.comment]
Extension: (empty)
Search for: (http://.*/)
Replace with: <Clear>
New name should be: tcmdr654.exe
but is: http.__plugins.ghisler.com_654_tcmdr654.exe

Now i have many totally useless saved settings !

Mr Ghisler, please, fix this as quick as possible !!!
Last edited by Gral on 2006-02-25, 01:07 UTC, edited 2 times in total.
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3300
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

Sorry for me this is a feature and NOT a bug.

for the first file u should take
Search: _
Replace: -

and for the second
Search: http.__*_t
Replace: t

HTH
Hoecker sie sind raus!
User avatar
Gral
Power Member
Power Member
Posts: 1468
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

This is a BUG, not feature - should be perform after search and replace !!!
otherwise you can type:
search _
replace /
and TC does nothing with it !
Sir_SiLvA wrote:Sorry for me this is a feature and NOT a bug.

for the first file u should take
Search: _
Replace: -

and for the second
Search: http.__*_t
Replace: t

HTH
What about this url : https://plugins.ghisler.com/img/unpack32_654a.exe ?
(New name should be
http---plugins.ghisler.com-img-unpack32_654a.exe
NOT
http---plugins.ghisler.com-img-unpack32-654a.exe)

or something like this http://www.site.net/files/____tcmdr.exe ?
Last edited by Gral on 2006-02-27, 22:21 UTC, edited 3 times in total.
User avatar
petergus
Member
Member
Posts: 164
Joined: 2003-02-06, 16:28 UTC
Location: Sweden, Enköping
Contact:

Post by *petergus »

I agree with Gral. The converting of non-legal file/folder chars
should be done after the search and replace.

How about highlight those file/folder that are not O.K.

// Peter
User avatar
Gral
Power Member
Power Member
Posts: 1468
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

Mr Ghisler !
Please, fix this behavior !
I have many useless saved settings, and many things i must do manually, seperately for each file !
jb
Senior Member
Senior Member
Posts: 412
Joined: 2003-02-09, 22:56 UTC
Location: Switzerland

Re: [BUG] MRT - comment as a new name.

Post by *jb »

Gral wrote:I found this in HISTORY.TXT:
30.10.05 Added: Multi-rename tool: Replace characters (returned by plugins) which are not allowed in file names by underscores or dots

As for me this is bug, not feature !

This should be perform after all user actions, even search & replace !!!
Yes, I agree basically. Just I would call it a buggy feature instead of opposing the bug to the feature.


By the way: Which disallowed characters are replaced by underscore (_) and which by dot (.)?

Gral wrote:I'm wait for quick fix !
Such remarks will probably not speed up the suggested change/correction.
User avatar
Gral
Power Member
Power Member
Posts: 1468
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

Last edited by Gral on 2006-02-27, 22:22 UTC, edited 1 time in total.
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

Even if it is performed before user activated Search&Replace, a simple on the fly setting to allow the end user to choose what character to use when replacing illegal filename chars would work - a setting that remembers what it last was/and or is also available in the INI.

Since TC does have some Unicode support, it wouldn't be impossible to set the character to something like the Pilcrow sign: ¶
User avatar
Gral
Power Member
Power Member
Posts: 1468
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

Last edited by Gral on 2006-02-27, 22:23 UTC, edited 1 time in total.
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

petergus wrote:How about highlight those file/folder that are not O.K.
This is the best of the listed requests, since it actually improves the tool.
Currently when the new file name isn't legal all we see is <Error!>

Something like: :\\SomeFile
Instead of <Error!>; Perhaps a userdefinable colour for the Illegal chars.

With additionally a new field to sort by [!] beside name, which would populate an exclamation mark for any illegal files
Fields:
[....Old Name....] [..Ext..] [..!..] [....New Name....]

Then just leave the resolution of fixing the illegal names to the end user with a search/replace mask.
User avatar
Gral
Power Member
Power Member
Posts: 1468
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

Balderstrom wrote:Then just leave the resolution of fixing the illegal names to the end user with a search/replace mask.
Exactly !
Last edited by Gral on 2006-02-27, 22:23 UTC, edited 1 time in total.
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3300
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

Gral wrote:This is a BUG, not feature - should be perform after search and replace !!!
As TC is intended to help the user its a Feature IMHUO.

PS: Could you pls change your avatar to something NOT moving? TIA
Hoecker sie sind raus!
User avatar
Gral
Power Member
Power Member
Posts: 1468
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

Sir_SiLvA wrote: As TC is intended to help the user its a Feature IMHUO.
As all MS programs ? :twisted:
Sir_SiLvA wrote: PS: Could you pls change your avatar to something NOT moving? TIA
Why ?

[mod]Petrificus totalus!

Hacker (Moderator)[/mod]
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Gral wrote:
Hacker Moderator wrote:Petrificus totalus!

Hacker (Moderator)
50 point from Gryffindor. One more exercise pls. ;) :lol:

Maybe the DARK LORD should giv it a try .......


sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Gral
Power Member
Power Member
Posts: 1468
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

Last edited by Gral on 2006-02-27, 22:24 UTC, edited 1 time in total.
Post Reply