FRename3

Here you can discuss about your favorite plug-in.
pepak
Posts: 519
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 13 times
Been thanked: 42 times

FRename3

Post by pepak »

Latest post of the previous page:

Thanks. That seems promising, although the last point may give me trouble (particularly the distinguish between ANSI and OEM) - it might be necessary to only support UTF8 or ANSI description files.
User avatar
John Doe
Бюрократ
Posts: 12897
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 38 times
Been thanked: 296 times

FRename3

Post by John Doe »

HaRT wrote: Sun 25 Oct, 2020 23:47 but FAR will use only the first line for whatever operations.
Wrong wording.
Indeed, Far shows only 1st line.
But it supports multiline for the rest of operations (copy/move).
HaRT wrote: Sun 25 Oct, 2020 23:47 I'd prefer it to avoid reordering lines.
This seems opinionated. Someone may prefer opposite: update description to reorder items)
Let's stick to Far's original behavior.
https://t.me/FarManager — Telegram чат
pepak
Posts: 519
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 13 times
Been thanked: 42 times

FRename3

Post by pepak »

Unfortunately, "sticking to FAR's original behavior" is difficult if there is no published API for the manipulation of descriptions.
buniak_a_h
Posts: 2131
Joined: Sat 20 Apr, 2013 00:17
Location: Питер
Has thanked: 131 times
Been thanked: 211 times
Contact:

FRename3

Post by buniak_a_h »

John Doe wrote: Mon 26 Oct, 2020 09:31 it supports multiline for the rest of operations (copy/move).
But panel.GetCurrentPanelItem(nil,1).Description caontains inly 1st line… Wish…
pepak
Posts: 519
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 13 times
Been thanked: 42 times

FRename3

Post by pepak »

I have the file descriptions figured out, except that I can't get their configuration to work - I can get the Far settings handle (SettingsControl(SCTL_CREATE)), I can open the necessary subkey (SettingsControl(SCTL_OPENSUBKEY, 'Descriptions')), but I just can't read the actual data value (SettingsControl(SCTL_GET, FST_STRING, 'ListNames') - I keep getting a FALSE. Does anyone have a minimal example for reading the FAR's data from a plugin? (NOT FROM A LUA SCRIPT, PLEASE!)
pepak
Posts: 519
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 13 times
Been thanked: 42 times

FRename3

Post by pepak »

I implemented a plugin setting for the description files. If FAR decides to publish its own settings sometime in the future, those will take precedence.

HaRT, if you would be so kind to test that it works for your description files. It seemed to work OK for my test descriptions, but I certainly didn't try anything more complex than "describe something, rename, see if the description still works".
Attachments
frename-test.zip
(915.1 KiB) Downloaded 8 times
User avatar
HaRT
Moderator
Posts: 9601
Joined: Tue 30 Aug, 2005 17:21
Location: Санкт-Петербург
Has thanked: 114 times
Been thanked: 233 times

FRename3

Post by HaRT »

pepak wrote: Mon 02 Nov, 2020 17:39 I implemented a plugin setting for the description files.
Thank you! And, additionally, thank you for positioning behavior customizations!
pepak wrote: Mon 02 Nov, 2020 17:39 if you would be so kind to test that it works for your description files
It seems to work fine in my tests, I'll keep an eye on it and report any issues promptly.

Please find attached the updated Russian LNG file. Also, please add a hotkey to the new Description files: label in the English LNG file (I suggest initial D).
Attachments
FRename3Rus-2.02.lng.7z
(1.3 KiB) Downloaded 7 times
Фар есть инструмент, а не нянька. © 2009 DrKnS
pepak
Posts: 519
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 13 times
Been thanked: 42 times

FRename3

Post by pepak »

HaRT wrote: Mon 02 Nov, 2020 19:28 Thank you! And, additionally, thank you for positioning behavior customizations!
I certainly hope I got them right :-)
It seems to work fine in my tests, I'll keep an eye on it and report any issues promptly.
Good. I think I will let this pre-release run for a week or so and then release a new version, provided that everything works fine.
Please find attached the updated Russian LNG file. Also, please add a hotkey to the new Description files: label in the English LNG file (I suggest initial D).
Will do, thanks.
pepak
Posts: 519
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 13 times
Been thanked: 42 times

FRename3

Post by pepak »

HaRT wrote: Mon 02 Nov, 2020 19:28It seems to work fine in my tests, I'll keep an eye on it and report any issues promptly.
Have you encountered any issues since you started to use the test version? Because if it is OK, I would like to release it as a regular version.
User avatar
HaRT
Moderator
Posts: 9601
Joined: Tue 30 Aug, 2005 17:21
Location: Санкт-Петербург
Has thanked: 114 times
Been thanked: 233 times

FRename3

Post by HaRT »

pepak wrote: Sat 07 Nov, 2020 10:23 Have you encountered any issues since you started to use the test version?
I used the plugin only a few times since then but faced no issues. I see no reason to postpone the release.
Фар есть инструмент, а не нянька. © 2009 DrKnS
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
BestiaPl
Posts: 3
Joined: Tue 12 May, 2020 11:19
Been thanked: 1 time

FRename3

Post by BestiaPl »

Version 2.02 Polish translation.

Updated files to version 2.02.
Attachments
FRename_2.02_PL.7z
(4.54 KiB) Downloaded 4 times
Post Reply

Return to “General Plug-In Discussions”