Hi! On Mon, 19 Mar 2012 10:29:21 +0530 Abhinandan Ramprasath wrote: [removed exessive quote, please crop to the relevant parts in the future] > Changing the name of the folder instead of generating a unique key > seems > like a better and easier solution. I'd love to get started on it. > Unfortunately i have very little knowledge about the operations of > Haiku > and their code structure. Can u give me a few pointers on how to > start off > or where to look for the bug? Others are much more qualified to answer your specific questions. The thing is that Tracker/Trash already do everything correctly. Just not for folders... removing files works without problems. So the solution is already in code, all that's left is finding the bug or extending wrt folders. :) On Sun, 18 Mar 2012 22:44:31 +0100 Ingo Weinhold wrote: > if the trash already contains an entry "Foo" the next trashed "Foo"s > would need to be renamed to "Foo 1", "Foo 2", and so on (I find the > "copy" > suffix the ticket mentions rather unsuitable). I guess that comes from the same routine that does the renaming when duplicating files in a folder. Personally, I have no issues with "copy". However, a superscript number would be more elegant and more obviously renamed because it's seldomly found in file names: Foo², Foo³, Foo⁴... OTOH, I don't know if those are friendly when accessed from another OS, for example... > IIRC the trash entries > already have an attribute that refers to their original location. I > don't > know whether that does include the name of the entry itself. It's the complete path, i.e. /path/to/filename and it's called _trk/original_path. > Ideally the trash window > would show the original entry name instead of the actual name. Not sure about that. With the renamed filename you'll see more easily which file with the identical name was deleted last, as that's the one with the highest number (usually). > The addition > of a "delete on" attribute (which could also be displayed by default) > might > be a good idea, too. That would be the "Created" attribute. I'd agree that Trash's default columns should be different from your ordinary folder. Like name, size, created (==deleted), original name. How is that done when building Haiku? Regards, Humdinger --=-=--=-=--=-=--=-=--=-=--=-=--=-=--=-=--=-=--=- Deutsche Haiku News - Haiku Gazette http://haiku-gazette.blogspot.com