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

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

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

Post by Maximus5 » Fri 25 Sep, 2009 20:12

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 » Fri 25 Sep, 2009 20:25

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: 234
Joined: Thu 31 Mar, 2005 19:41
Has thanked: 1 time

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

Post by Volodya » Fri 25 Sep, 2009 21:29

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 » Fri 25 Sep, 2009 23:06

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: Новосибирск
Contact:

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

Post by Kildor » Sat 26 Sep, 2009 03:40

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 » Sat 26 Sep, 2009 10:13

Do you mean a statically linked version (ie. non-dependant on the redist)?

User avatar
John Doe
Бюрократ
Posts: 11078
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 11 times
Been thanked: 64 times

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

Post by John Doe » Sat 26 Sep, 2009 11:39

Could you make NameRe also update file descriptions (files.bbs/descript.ion)?

User avatar
Centaur
Posts: 1083
Joined: Tue 05 Apr, 2005 20:09
Location: Novosibirsk, Russia

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

Post by Centaur » Sat 26 Sep, 2009 14:00

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: Новосибирск
Contact:

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

Post by Kildor » Sat 26 Sep, 2009 15:34

> 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 » Sun 27 Sep, 2009 09:53

@ 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: Новосибирск
Contact:

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

Post by Kildor » Sun 27 Sep, 2009 15:15

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: 11078
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 11 times
Been thanked: 64 times

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

Post by John Doe » Mon 28 Sep, 2009 10:43

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

User avatar
HaRT
Moderator
Posts: 7985
Joined: Tue 30 Aug, 2005 17:21
Location: Санкт-Петербург
Has thanked: 66 times
Been thanked: 98 times

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

Post by HaRT » Mon 28 Sep, 2009 11:17

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: 11078
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 11 times
Been thanked: 64 times

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

Post by John Doe » Mon 28 Sep, 2009 12:07

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

User avatar
HaRT
Moderator
Posts: 7985
Joined: Tue 30 Aug, 2005 17:21
Location: Санкт-Петербург
Has thanked: 66 times
Been thanked: 98 times

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

Post by HaRT » Mon 28 Sep, 2009 12:24

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

free3dom
Posts: 20
Joined: Sat 15 Aug, 2009 18:54

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

Post by free3dom » Mon 28 Sep, 2009 19:07

@ Maximus5 - I thought about it long and hard and finally decided to include an edit via internal editor mode in the latest version :) it is accessed via a separate entry in the plugin menu, and even provides some editor plugins to assist with the rename...also fixed the missing character bug.

@ Kildor - I've just uploaded a new version, which is now static and no longer dependant on the redists - hope that helps with the non-admin systems..

@ John Doe - It's still a bit unclear...remeber I don't use these and have no idea about the file at all...so, what about multiple files, missing files, etc. like I said, show me a small before/after file of exactly what you want - should it generate it for all files in the folder, renamed only, etc. I'm gonna need EXACT details, since I have no need for it - you gotta do the legwork if you want me to include it ;)

Post Reply

Return to “General Plug-In Discussions”

Who is online

Users browsing this forum: No registered users and 1 guest