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.FRename3
- John Doe
- Бюрократ
- Posts: 13861
- Joined: Wed 27 Apr, 2005 20:42
- Has thanked: 74 times
- Been thanked: 428 times
- Contact:
FRename3
Wrong wording.
Indeed, Far shows only 1st line.
But it supports multiline for the rest of operations (copy/move).
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 чат
- buniak_a_h
- Posts: 4268
- Joined: Sat 20 Apr, 2013 00:17
- Location: Санкт-Петробад
- Has thanked: 222 times
- Been thanked: 644 times
- Contact:
FRename3
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!)
FRename3
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".
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 116 times
- HaRT
- Moderator
- Posts: 10866
- Joined: Tue 30 Aug, 2005 17:21
- Has thanked: 221 times
- Been thanked: 358 times
FRename3
Thank you! And, additionally, thank you for positioning behavior customizations!
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 117 times
Фар есть инструмент, а не нянька. © 2009 DrKnS
FRename3
I certainly hope I got them right :-)
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.It seems to work fine in my tests, I'll keep an eye on it and report any issues promptly.
Will do, thanks.Please find attached the updated Russian LNG file. Also, please add a hotkey to the newDescription files:
label in the English LNG file (I suggest initialD
).
FRename3
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.
FRename3
Version 2.03
- Support for renaming files from a temporary panel (the TMPPANEL plugin).
- Support for alternate behaviors of the Smart END function. Now it can switch between the extension start and the line end (the behavior of the previous versions), the extension start and the filename end and the filename end and the line end. You can select your preferred behavior in the plugin's options.
- Added detection of unsupported panels (e.g. process list). There's nothing I can do about these because Plugin API does not provide a Rename function that I could call.
- Updated Polish translation.
- Updated the dialog drawing code to a more robust framework.
- Updated the plugin-call support to be more in-line with my other plugins.
- Cleaned up the source code.
FRename3
Discovered a bug in the memory handling of the plugin. Will be releasing a fixed version soon, but before that I'd appreciate a Polish translation of the text:
Fixed a bug which could cause a crash due to referencing unallocated memory or an unexpected and undesired behavior (e.g. not updating descriptions when required by the settings or vice versa).
FRename3
Version 2.05
- Fixed a bug which could cause a crash due to referencing unallocated memory or an unexpected and undesired behavior (e.g. not updating descriptions when required by the settings or vice versa).