NameRe — Batch Rename System (FAR 2.0 x86/x64)

Here you can discuss about your favorite plug-in.
Maximus5
Posts: 3295
Joined: Sun 11 Nov, 2007 02:03
Been thanked: 10 times
Contact:

NameRe — Batch Rename System (FAR 2.0 x86/x64)

Post by Maximus5 »

Anounce

1. Feature request: rename filenames via far internal editor (like "Visual rename" -> F4). I like block selection manipulations ;)
2.
3. "Autopreview" checkbox in configuration dialog?
4. Can you support more templates?
[N] Old file name WITHOUT extension.
[N2] 2-nd character from old name.
[N2-5] Characters from 2-nd to 5-th from old name.
It's small extract from "Visual rename" help
free3dom
Posts: 20
Joined: Sat 15 Aug, 2009 18:54

Re: NameRe - Batch Rename System (FAR 2.0 x86/x64)

Post by free3dom »

1. Had considered doing filenames via far internal editor (like Renamer in Far 1.x) but it's outside the scope of this type of batch rename tool...wouldn't know where to access it from within the current layout (another entry?!?). It should really be a separate plugin...

2. Damn ;) couldn't get the dialog API to display separators correctly so I had to do it manually (and obviously chose a bad character). Will add a registry entry for the character so that the user can adjust it if needed...the API is a bit of a mess :?

3. That's because the template only works on the NAME part of files, unless the "Extension from Template" option is enabled - this is the same way Windows Explorer works when extensions are hidden. To specify extensions in the template check "Extension from Template"... :rtfm:

4. Played around with auto preview, but it get's really slow after a while (esp for large selections) if it's done for every change to the edit controls - so I decided against it. Of course, the ideal would be to have it only update if no changes are made for 1 or 2 seconds - but to get that working would require yet another separate thread (since the dialog API is annoyingly single threaded, queue's anyone?!?) that would do the timing and would then call the preview thread...etc. etc. its a mess. However, now that I've finished the plugin I might look into that again...

Not gonna add more templates right now, maybe later...and * is filename without extension!! (see 3.)
Volodya
Posts: 268
Joined: Thu 31 Mar, 2005 19:41
Has thanked: 30 times

Re: NameRe - Batch Rename System (FAR 2.0 x86/x64)

Post by Volodya »

From help:
NameRe is able to rename both files and folders.

Action:
Select any directory. Call plugin
Message:
Invalid Selection, Nothing to Rename

Why?
Other question: Why so strange type of message (all noun are capitalize)?
free3dom
Posts: 20
Joined: Sat 15 Aug, 2009 18:54

Re: NameRe - Batch Rename System (FAR 2.0 x86/x64)

Post by free3dom »

Go to config and enable the "Allow Folder Rename" under general....

Hahaha...so you ask me about strange messages by saying:
"Why so strange type of message (all noun are capitalize)?"
If u want to question my use of language, you should at least do it properly...try:
"Why such a strange type of message (all nouns are capitalized)?"
...and no, they're not, it's called Title Caps and it's just my preference for messages like that.
Kildor
Posts: 1515
Joined: Wed 16 Mar, 2005 06:26
Location: Новосибирск
Been thanked: 1 time
Contact:

Re: NameRe - Batch Rename System (FAR 2.0 x86/x64)

Post by Kildor »

Can you provide static version of the plugin? It`s not possible to use this plugin in portable version of far.
Ты мне не выкай!
«ФарФорум не для пользователей!»
Upd:
P.S. Я просто поддерживаю беседу.» © Народ.

xmpp:kildor@jabber.ru
free3dom
Posts: 20
Joined: Sat 15 Aug, 2009 18:54

Re: NameRe - Batch Rename System (FAR 2.0 x86/x64)

Post by free3dom »

Do you mean a statically linked version (ie. non-dependant on the redist)?
User avatar
John Doe
Бюрократ
Posts: 13807
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 73 times
Been thanked: 426 times
Contact:

Re: NameRe - Batch Rename System (FAR 2.0 x86/x64)

Post by John Doe »

Could you make NameRe also update file descriptions (files.bbs/descript.ion)?
https://t.me/FarManager — Telegram чат
User avatar
Centaur
Posts: 1083
Joined: Tue 05 Apr, 2005 20:09
Location: Novosibirsk, Russia
Been thanked: 2 times

Re: NameRe - Batch Rename System (FAR 2.0 x86/x64)

Post by Centaur »

Does it support renaming by regular expression?

PS: Title Case vs Sentence case is not a matter of personal preference, it is a matter of UI guidelines. On Windows, guidelines suggest sentence case for error messages.
Kildor
Posts: 1515
Joined: Wed 16 Mar, 2005 06:26
Location: Новосибирск
Been thanked: 1 time
Contact:

Re: NameRe - Batch Rename System (FAR 2.0 x86/x64)

Post by Kildor »

> Do you mean a statically linked version (ie. non-dependant on the redist)?
Exactly. Sorry if I`ve wrote wrong. :-)
Ты мне не выкай!
«ФарФорум не для пользователей!»
Upd:
P.S. Я просто поддерживаю беседу.» © Народ.

xmpp:kildor@jabber.ru
free3dom
Posts: 20
Joined: Sat 15 Aug, 2009 18:54

Re: NameRe - Batch Rename System (FAR 2.0 x86/x64)

Post by free3dom »

@ John Doe - i've never used those, but if u give me some details as to what changes need to be made (like a small example before/after file) i'll look into it - I'm assuming they contain file lists but am not aware of the exact format. I remember those from loooong ago ;)

@ Centaur - no, this is supposed to be a simple and fast plugin (able to do very large number of files in as little time as possible), so I'll not be supporting regular expressions or substrings or any other stuff for templates right now...and as for Title Case vs. Sentence case, to me it IS a matter of personal preference (guidelines aren't rules, and even those are meant to be broken) - so no offence but... my plugin, my preference ;)

@ Kildor - no problem, once i've tweaked and made a couple of changes I'll do a static build for the next version...against Windows guidelines btw. ;)
Kildor
Posts: 1515
Joined: Wed 16 Mar, 2005 06:26
Location: Новосибирск
Been thanked: 1 time
Contact:

Re: NameRe - Batch Rename System (FAR 2.0 x86/x64)

Post by Kildor »

Well. I have some computers without admin accounts, and without *any* mscvrt* dlls. And I`m able to use 7th runtimes from programm folder, but not 8+. So, I can use static version of plugin, or don`t use it at all.
Ты мне не выкай!
«ФарФорум не для пользователей!»
Upd:
P.S. Я просто поддерживаю беседу.» © Народ.

xmpp:kildor@jabber.ru
User avatar
John Doe
Бюрократ
Posts: 13807
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 73 times
Been thanked: 426 times
Contact:

Re: NameRe - Batch Rename System (FAR 2.0 x86/x64)

Post by John Doe »

descript.ion / file.bbs
codepage: oem or win

Code: Select all

filename.ext description
filena~1.ext description
"filename with spaces.ext" description
filename.ext multiline description line 1
  multiline description line 2
  multiline description line 3
- filename must start from very beginning of line
- description is separated from filename by space(s) or tab(s)
- filename may be in long or in short form
- filename may be enclosed in quotes
https://t.me/FarManager — Telegram чат
User avatar
HaRT
Moderator
Posts: 10822
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 221 times
Been thanked: 358 times

Re: NameRe - Batch Rename System (FAR 2.0 x86/x64)

Post by HaRT »

John Doe wrote:codepage: oem or win
I believe that it should be OEM only due to historic reasons.
John Doe wrote:filename may be enclosed in quotes
Need(less) to say, “may” becomes “must” if file name contains a white space.
Фар есть инструмент, а не нянька. © 2009 DrKnS
User avatar
John Doe
Бюрократ
Posts: 13807
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 73 times
Been thanked: 426 times
Contact:

Re: NameRe - Batch Rename System (FAR 2.0 x86/x64)

Post by John Doe »

HaRT wrote: I believe that it should be OEM only due to historic reasons.
There are 3rd party applications using win-codepage for descript.ion
https://t.me/FarManager — Telegram чат
User avatar
HaRT
Moderator
Posts: 10822
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 221 times
Been thanked: 358 times

Re: NameRe - Batch Rename System (FAR 2.0 x86/x64)

Post by HaRT »

John Doe wrote:There are 3rd party applications using win-codepage for descript.ion
There's too much non-conformant software in the world. I wouldn't take these as a model.
Фар есть инструмент, а не нянька. © 2009 DrKnS
Post Reply

Return to “General Plug-In Discussions”