FRename3

Анонсы новых плагинов. Обсуждение плагинов ведется ниже.
Post Reply
pepak
Posts: 519
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 13 times
Been thanked: 42 times

FRename3

Post by pepak »

FRename3 is a very simple editor-driven file rename plugin. It is based on the original FRename for FAR1 by Jouri Mamaev, which I used quite a lot but which became more and more problematic with the coming of FAR 2 and 3. FRename3 is a reimplementation of FRename in Delphi, with full support for both FAR 2 and 3, 32bit and 64bit, and here and there some improvements which I found useful - for example, it adds a few hotkeys to the editor, allowing you to select the target filenames or to jump to the beginning of a target filename.

Plugin in action:

The extra editor functions:


The plugin can be discussed in the discussion thread.

Download - version 2.02 (2020-11-11)
Last edited by pepak on Wed 11 Nov, 2020 05:49, edited 3 times in total.
pepak
Posts: 519
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 13 times
Been thanked: 42 times

FRename3

Post by pepak »

Version 2.00 Changelog
  • Rewritten the plugin to the new framework for FAR plugins. This will enable far easier maintenance in the future.
  • PluginCall support for LuaMacro. Examples of use can be found in FRename3.lua.
  • Russian translation by bigvax and HaRT.
  • Option to display a short description rather than the usual long help. You can reduce the text even more by leaving only an empty string for it in the language file.
  • Option to select the renamed files (instead of the default behavior or keeping the non-renamed files selected). Note that this will be quite slow, particularly with slow drives and/or huge directories.
  • Start with the cursor at the destination filename (as if ALT+F1 were pressed right after opening of the editor).
  • If an error occurs during the renaming, the filelist will be displayed again - but in this version it will only contain the failed files. In previous version, the list would contain even the files which were renamed correctly.
  • If ESCAPE is pressed inside of the "failed to rename" dialog, the renaming process will stop immediately. In the previous versions, it would continue and the failed files would be once again shown in an editor, making it difficult to stop renaming.
  • Refresh the panel automatically after the renaming was finished.
  • Fixed a bug with renaming a file containing a Unicode character which does not fit into 16 bits (e.g. 0x1F920).
pepak
Posts: 519
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 13 times
Been thanked: 42 times

FRename3

Post by pepak »

Version 2.01
  • Updated the logic of positioning cursor on ALT+F1 to be more in sync with the user's expectation. The priority is now to display as much of the destination filename as possible in the available screen space.
  • Added ALT+F3 shortcut to delete destination filename from the cursor position until the filename's extension. In "FRename3.lua", you can find an example of how to remap this function to CTRL+D and CTRL+K if no block is selected.
  • Added ALT+F4 shortcut to move the cursor to the extension of the destination filename.
  • Added ALT+F5 shortcut to act as a "Smart HOME" - switch the cursor between the destination filename and the beginning of the line. Added ALT+F6 to act as a "Smart END" - switch the cursor between the destination filename's extension and the end of the line. Added macros to FRename3.lua to convert HOME and END to their respective "Smart" versions if used within the plugin's editor.
  • Added FRename3.IsMyEditorLine() function to FRename3.lua. It returns true if the active editor is a FRename3's editor and the current line is a line usable for Rename operations.
  • Option to disable internal hotkeys (ALT+F1 etc.). This may be useful if you use these hotkeys for another functionality. You may want to redefine the functions to new hotkeys using the provided scripting (see FRename3.lua for examples).
  • Added Polish translation by Andrzej Rudnik.
  • Updated the plugin to a newer version of Dialog API. Among other things, this allows the plugin to properly react to resizing of the FAR's window.
  • Minor fixes for compatibility with Delphi 10.1 and newer.
  • Only save the settings if they are actually different from the previous version. This will prevent unnecessary changes to the plugin's data file, e.g. when performing incremental backups.
pepak
Posts: 519
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 13 times
Been thanked: 42 times

FRename3

Post by pepak »

Version 2.02
  • A new option to move the initial cursor position to the destination filename. Until now, this was determined by the "Show short help message" option.
  • A new option for the cursor positioning strategy. Now there are four distinct strategies: Minimize scrolling (don't scroll the editor window, unless necessary to facilitate the movement of the cursor), prioritize source file name (display as much of the source filename as possible), prioritize destination file name (display as much of the destination filename as possible, and use the remaining screen space to display the source filename; this was the plugin's behavior in version 2.00) and only destination file name (display only the destination filename, even if some part of the source filename would fit as well; this was the plugin's behavior in version 2.01). Default is the version 2.00 behavior.
  • A new option to support updating the file descriptions. The setting is disabled by default but can be enabled. Please understand that the functionality is highly experimental. Note that FAR3 API does not support reading FAR's file descriptions settings (F9 -> Options -> File descriptions) so you need to enter the list of description files into the plugin's configuration manually.
  • Updated Polish translation.
  • Updated Russian translation.
Downloads
Post Reply

Return to “Анонсы новых плагинов”