I took the liberty of rewriting the old plugin FRename by Jouri Mamaev to a more modern format. I tried to mimic the behavior of the original plugin for the most part, but it is a complete rewrite, no source code from the original was used. The plugin is now written in Delphi and supports both FAR 2 and 3, both 32bit and 64bit. The UI changes are mostly cosmetic, e.g. I opted for a different filename marker (I used quotes) and provided some new functionality to the editor window: the plugin now has a menu which lets you to:
move the cursor quickly to the beginning of the destination filename, which is very useful if you are renaming long filenames with plenty of word separators), and
select all destination filenames in a vertical block, which lets you apply various block-level plugins (e.g. Change Case or RESearch) to them.
These functions are also accessible through keyboard shortcuts - ALT+F1 to jump to the beginning of the filename and ALT+F2 to mark the block.
pepak, thank you for a great plugin. It just works.
I have a feature request: it would be nice to preserve files selection after renaming, that is, to re-select each file after it is renamed. It will be handy when renaming is just one of a series of operations to perform on the group of files. After all, to unselect them is just one shortcut.
Ideally, if any of the files being renamed was the current one on the panel, it should remain current under the new name.
Since the plugin has no dedicated UI (apart from the editor), what I ask might be a global setting or even a string in the LNG file (as it can be customized).
Not sure about this - the current selection strategy is also reasonable (select non-renamed files so that you can attempt to rename them again). I will have to think about how to provide a user with choice.
pepak wrote: select non-renamed files so that you can attempt to rename them again
This is perfectly valid if the plugin failed to rename some files but pretty useless when all files succeeded. If a user could switch between selecting failed and succeeded files (e.g. by standard CtrlM), it would be great. I suppose it is not too hard to select succeeded files programmatically, then replace selection by failed files, and FAR will provide switching.
As I said, I need to figure out some reasonable way of letting the user choose. Your CTRL+M trick would be perfect, except I don't think I can do that in FAR (I don't think there's a call which would intruct FAR to "remember the selection now").
Do try with a clean profile and no additional plugins, and you may also want to give an older FAR Manager version a try. I expect that with unmodified config and old FAR, you will still get a crash, and with a new FAR but no plugins/config, everything will be fine. Because I don't really see any change in FAR's source code which would account for this loss of functionality, so I suspect some other plugin.