Renaming issue in Find Files Listbox
Moderators: Hacker, petermad, Stefan2, white
Renaming issue in Find Files Listbox
Hi,
Congrats on getting the new forum running.
The issue is as follows:
1) Perform a seach on a directory (Alt-F7) and feed the results to a listbox.
2) Rename any file in the Search result listbox (Shift-F6)
The new filename is not reflected in the Search result list, however the filename has been changed. This can be verified by examining the directory containing the file.
Is it possible to fix this?
Steve
Congrats on getting the new forum running.
The issue is as follows:
1) Perform a seach on a directory (Alt-F7) and feed the results to a listbox.
2) Rename any file in the Search result listbox (Shift-F6)
The new filename is not reflected in the Search result list, however the filename has been changed. This can be verified by examining the directory containing the file.
Is it possible to fix this?
Steve
Hi,
It's like that because after a renaming operation TC wouldn't know if the renamed file belongs to the search result (eg search for *.txt, you rename one file to *.bak). TC would have to repeat the search after every rename.
HTH
Roman
It's like that because after a renaming operation TC wouldn't know if the renamed file belongs to the search result (eg search for *.txt, you rename one file to *.bak). TC would have to repeat the search after every rename.
HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
- pdavit
- Power Member
- Posts: 1529
- Joined: 2003-02-05, 21:41 UTC
- Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space
- Contact:
It doesn’t matter which renaming method you follow but the problem relies on a list feed from a search result. I haven’t tried it but I bet you’ll get the same outcome if you use Ctrl+T. TC treats feed lists differently than the normal ones!huub wrote:why don't you use Ctrl-T to rename files
"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!"
Christian Ghisler Rules!!!
Christian Ghisler Rules!!!
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Hacker's explanation is correct, I'm not updating the list because I would have to repeat the search, or check all file names whether there was a change or not.
While it would be feasible to check this for a single file rename, it's not for multi-rename or normal rename of multiple files - the actual rename is done in a separate function from the file list. In normal operation, TC just re-reads the whole directory. But with a search for maybe several thousand files, this would be too slow.
While it would be feasible to check this for a single file rename, it's not for multi-rename or normal rename of multiple files - the actual rename is done in a separate function from the file list. In normal operation, TC just re-reads the whole directory. But with a search for maybe several thousand files, this would be too slow.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Thanks for the Answers
Steve
Some more thoughts
Ok, I think I understand. This is difficult to do because when renaming files during normal operation you automatically re-read the entire directory in order to display the new names.I'm not updating the list because I would have to repeat the search, or check all file names whether there was a change or not.
However, you must already have coded structures to store an arbitrary list of files as you do when displaying files in archives etc.
Is it not possible to modify one of these structures to store a list of renamed files. Both the single file rename and multi-file rename tool would have to add to this list during a rename operation.
Then whenever file renaming occurs you would be able to display filenames by using the list of renamed files (without having to re-read the entire directory).
Of course, this would mean a more complicated file listing routine which is both able to list files in a directory or reconcile a directory list and renamed list.
I guess it is a lot of work all round. Still it would be nice to have correspondence between the file list and what is on the hard drive.
Steve