Why not allow identical name for different files?

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
dsscicin
Junior Member
Junior Member
Posts: 19
Joined: 2009-11-03, 13:15 UTC

Why not allow identical name for different files?

Post by *dsscicin »

Why not allow identical name for different files in one TC panel, since they are just virtual? I think it's very useful for VP and other FS plugins. For example, if allowed, and then VP wouldn't have to rename files in it.
User avatar
Vochomurka
Power Member
Power Member
Posts: 816
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

Identical names (even without path) are allowed in a listbox after search.
I think, such problem just rarely appears. Plugin authors, if they would try, can easily solve it. Frankly, files with fully identical names are only descript.ion that I can really imagine...
Single user license #329241
PowerPro scripts for Total Commander
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

dsscicin, how do you suggest to determine which file plugin should return when TC passes filename in your case?
dsscicin
Junior Member
Junior Member
Posts: 19
Joined: 2009-11-03, 13:15 UTC

Post by *dsscicin »

:) In Real Path, of course it should not allow the same name. But in Virtual Path in TC, it's not a question. You could return the real path of the selected names when you have selected some files to deal with. If you haven't any file and just want to use them in command-line,(not often for most of users), of course you can add some other information to identify them.(maybe like 001.jpg -0 -1 -2...)
For example

VirtualPath ------ RealPath
VP\MJ\001.jpg ------ c:\Pictures\2001\001.jpg
VP\MJ\001.jpg ------ c:\Pcitures\2002\001.jpg
VP\MJ\001.jpg ------ c:\Pcitures\2003\001.jpg

I think it's better than

VP\MJ\001.jpg ----------- c:\Pictures\2001\001.jpg
VP\MJ\001(01).jpg ------ c:\Pcitures\2002\001.jpg
VP\MJ\001(02).jpg ------ c:\Pcitures\2002\001.jpg

The first way the name in Virtual Name always= Real Name. So in virtual panel the operation on Virtual Files almost always = on Real Files.
For example, now in virtual panel you select them and "cm_MultiRenameFiles"
the first way the renaming list (effect on real files)
c:\Pictures\2001\001.jpg
c:\Pcitures\2002\001.jpg
c:\Pcitures\2003\001.jpg
the second way (now used, no effect on real files)
VP\MJ\001.jpg
VP\MJ\001(01).jpg
VP\MJ\001(02).jpg

Deal MVV, I have suggested for several times because I admire it so much. (suggestion like "track the file","drag-and-drop" and so on) Now one way to sort files is "PATH", maybe VP could give us another way to manage files, that is "PATH + TAG". One virtual folder in VP could be seen as one Tag. When "cd" one folder/tag, you could do everything to the real-file like in the real path, such as "rename","descript","zip"......
I ever seen another file manager named "Directory Opus" (expensive) when surfing the internet. The "file collection" function in it is just as what I said.
Therefore I want to find a way to use it in TC, but I have learned nothing about programming. (maybe I will learn, but the time......:oops: )So I put all my expectation on VP. Great thanks!
MVV wrote:dsscicin, how do you suggest to determine which file plugin should return when TC passes filename in your case?
dsscicin
Junior Member
Junior Member
Posts: 19
Joined: 2009-11-03, 13:15 UTC

Post by *dsscicin »

Vochomurka wrote:Identical names (even without path) are allowed in a listbox after search.
  • AFAIK, maybe it's not like this.
I think, such problem just rarely appears. Plugin authors, if they would try, can easily solve it. Frankly, files with fully identical names are only descript.ion that I can really imagine...
  • :) My reply above to MVV is really what I want.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Since virtual panel's features are limited by TC WFX interface, it is not possible to have multiple items with same names in single folder - when you e.g. press F3 on any such file TC tells to plugin just filename so plugin can't determine which one of all files with same name TC wants to access. You may download WFX interface help file to know more about this interface.
Post Reply