NewName3

Here you can discuss about your favorite plug-in.
Post Reply
pepak
Posts: 579
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 17 times
Been thanked: 48 times

NewName3

Post by pepak »

This topic discusses the NewName3 plugin.

This is another rewrite of an old FAR1 plugin which I like a lot: NewName by Ivan Sintyurin. 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. there are some new patterns and the ability to show which files failed to rename. In plugin options

The supported patterns are:
  • %# - the ordinal number of the file.
  • %h - the ordinal number of the file in hexadecimal (lower-case).
  • %H - the ordinal number of the file in hexadecimal (upper-case).
  • %t - the total number of files.
  • %f - original file name and extension.
  • %n - original file name without extension.
  • %e - original extension.
  • %% - the percent symbol (%).
Version 0.91
Binaries
Source code
Last edited by pepak on Sun 17 Oct, 2021 10:29, edited 4 times in total.
User avatar
HaRT
Moderator
Posts: 9991
Joined: Tue 30 Aug, 2005 17:21
Location: Санкт-Петербург
Has thanked: 145 times
Been thanked: 287 times

NewName

Post by HaRT »

Using the name of the original plugin will likely cause users' confusion.
Maybe you change the name at least a little?
Фар есть инструмент, а не нянька. © 2009 DrKnS
pepak
Posts: 579
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 17 times
Been thanked: 48 times

NewName3

Post by pepak »

Version 1.01
  • Rewritten the plugin to the new plugin framework.
  • If the plugin is called with no selected files, the active file (the one under the cursor) can be used for renaming. This functionality must be enabled in the plugin's configuration first.
  • Added support for saving the counter value for each filename pattern separately. If enabled by the checkbox available in the NewName dialog, the saved value will be restored when you enter the same filename pattern later. Note that the search for saved patterns is case-sensitive.
  • Fixed a bug that increased the counter even when a rename failed. That would have caused skipped values in the renamed sequence.
  • Removed the "No 'odd' zeros" option because it is not really needed - in order to remove the leading zeroes, simply remove them from the number.
  • Optimized the processing of options: They are now only open for a limited time, allowing for a better concurrent execution of the plugin in multiple FAR windows. The options are only saved if their contents changed, preventing unnecessary modifications to the plugin's config file.
  • Cleaned up the source code.
Download
Maxine Proctor
Posts: 18
Joined: Fri 29 May, 2020 09:37
Has thanked: 3 times

NewName3

Post by Maxine Proctor »

Does the plugin work with a selected group of files in a temporary panel?
pepak
Posts: 579
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 17 times
Been thanked: 48 times

NewName3

Post by pepak »

Apparently, it does not. But since I was adding this functionality to FRename3 recently, I am confident it can be done for NewName3, too.
pepak
Posts: 579
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 17 times
Been thanked: 48 times

NewName3

Post by pepak »

Version 1.02
  • Support for renaming files from a temporary panel (the TMPPANEL plugin).
  • By default the plugin no longer creates "incompatible" filenames ending with a dot (e.g. with a template such as "%#.%e" if the source file has no extension). The old behavior can be enabled in the plugin's options, but is not recommended as many applications do not work with these filenames.
Download
Last edited by pepak on Thu 28 Oct, 2021 06:35, edited 1 time in total.
Post Reply

Return to “General Plug-In Discussions”