DirSync3 — Synchronize Directories

Here you can discuss about your favorite plug-in.
User avatar
Wave
Posts: 1885
Joined: Thu 04 Aug, 2005 18:47
Has thanked: 14 times
Been thanked: 26 times

DirSync — Synchronize Directories

Post by Wave »

Latest post of the previous page:

I test ver 0.97 far3 x86 on far 4400. Run plugin, see editor with files and folders, which can copy-move-delete to left or to right. Run plugin via menu to change direction of operations. See two messageboxes:

Incorrect or damaged …\DirSync\DirSyncRus.lng
Message 137 not found

and

Incorrect or damaged …\Utils\DirSync\DirSyncRus.lng
Message 138 not found
Пользуюсь ФАРом больше 20 лет © собирательный.
pepak
Posts: 604
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 17 times
Been thanked: 54 times

DirSync — Synchronize Directories

Post by pepak »

Yep, I am an idiot - I forgot to add the last two language strings to the russian and spanish language file:

Code: Select all

"Find next older/missing on the l&eft"
"Find next older/missing on the r&ight"
I have by now updated the original archive on the web, so if you just redownload it, everything should work just fine.
User avatar
Wave
Posts: 1885
Joined: Thu 04 Aug, 2005 18:47
Has thanked: 14 times
Been thanked: 26 times

DirSync — Synchronize Directories

Post by Wave »

Thanks!
Пользуюсь ФАРом больше 20 лет © собирательный.
User avatar
John Doe
Бюрократ
Posts: 13807
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 73 times
Been thanked: 426 times
Contact:

DirSync — Synchronize Directories

Post by John Doe »

pepak
Posts: 604
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 17 times
Been thanked: 54 times

DirSync — Synchronize Directories

Post by pepak »

Back in 2009 I wanted a synchronization plugin which didn't exist at the time. So I took the sources from FAR 1's Advanced Compare and modified them in several places to get the functionality I wanted. The result was pepak @ DirSync. Maximus5 took pepak @ DirSync, updated it for FAR 2 compatibility and released it as Maximus5 @ DirSync. Eventually he implemented some new features and also provided a MacroLib script for better control of the editor with synchronization info. But for some reason I didn't like his script and rewrote it as macro pepak @ DirSync.

Eventually I decided to reimplement the whole plugin from scratch. The result is what we discuss in this thread.
User avatar
John Doe
Бюрократ
Posts: 13807
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 73 times
Been thanked: 426 times
Contact:

DirSync — Synchronize Directories

Post by John Doe »

pepak wrote: rewrote it as macro pepak @ DirSync.
Is it for new or for old plugin?
pepak wrote: the whole plugin from scratch.
I suggest you to add this story and links to corresponding topic title posts (and plugin docs), and change new plugin name to somewhat like http://forum.farmanager.com/viewtopic.php?f=34&t=9726 (feel free to edit).
pepak
Posts: 604
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 17 times
Been thanked: 54 times

DirSync — Synchronize Directories

Post by pepak »

John Doe wrote:
pepak wrote: rewrote it as macro pepak @ DirSync.
Is it for new or for old plugin?
It is for Maximus5's plugin. It is no longer relevant for my current plugin.
pepak wrote: the whole plugin from scratch.
I suggest you to add this story and links to corresponding topic title posts (and plugin docs), and change new plugin name to somewhat like http://forum.farmanager.com/viewtopic.php?f=34&t=9726 (feel free to edit).
I guess. This will be particularly interesting to handle with the PlugRing.
User avatar
John Doe
Бюрократ
Posts: 13807
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 73 times
Been thanked: 426 times
Contact:

DirSync — Synchronize Directories

Post by John Doe »

pepak wrote: t is for Maximus5's plugin. It is no longer relevant for my current plugin.
Ok, I just moved it to corresponding topic (russian).
pepak wrote: This will be particularly interesting to handle with the PlugRing.
Nothing special.
But please make sure that new plugin has different GUID.
pepak
Posts: 604
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 17 times
Been thanked: 54 times

DirSync — Synchronize Directories

Post by pepak »

John Doe wrote:But please make sure that new plugin has different GUID.
I already did. I didn't keep any of the old code, including GUIDs.
User avatar
John Doe
Бюрократ
Posts: 13807
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 73 times
Been thanked: 426 times
Contact:

DirSync — Synchronize Directories

Post by John Doe »

Ok. I've just added links to russian announce: http://forum.farmanager.com/viewtopic.p ... 506#p82506

Please update your old topic yourself (add link to new plugin and hide pictures into
pepak
Posts: 604
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 17 times
Been thanked: 54 times

DirSync3 — Synchronize Directories

Post by pepak »

Version 1.01
  • Fixed very long filenames from version v0.90 - the feature did not actually work.
  • The user's decision for the "delete directory" operation (Delete/Skip) is now applied to files within that directory, too.
  • Fixed incorrect redraw after pressing ESC during the synchronization phase.
  • When synchronizing directories, copy also file attributes (read-only, hidden etc.).
  • During the initial scan for differences, show the indeterminate progress status in the FAR Manager icon. It will get removed when the scan completes.
  • Refresh the panels when synchronization completes.
Download
User avatar
Dennis_Moore
Posts: 295
Joined: Tue 03 Mar, 2015 19:54
Location: Kiev
Has thanked: 6 times
Been thanked: 17 times

DirSync3 — Synchronize Directories

Post by Dennis_Moore »

Hello pepak! It seems that Alt+F3 in editor did not work correctly. Here is what i see after pressing that hotkey:

Image

My configuration: FAR3 b4898, DirSync 1.1.0.558, Windows 7 SP1 + Updates
pepak
Posts: 604
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 17 times
Been thanked: 54 times

DirSync3 — Synchronize Directories

Post by pepak »

That's a problem of your configuration. DirSync3 does not perform side-by-side comparison, it calls a program (e.g. WinMerge) to do that. You need to set this program up in plugin options. Then the functionality will work just fine.
User avatar
Dennis_Moore
Posts: 295
Joined: Tue 03 Mar, 2015 19:54
Location: Kiev
Has thanked: 6 times
Been thanked: 17 times

DirSync3 — Synchronize Directories

Post by Dennis_Moore »

pepak wrote: That's a problem of your configuration. DirSync3 does not perform side-by-side comparison, it calls a program (e.g. WinMerge) to do that. You need to set this program up in plugin options. Then the functionality will work just fine.
WinMerge works fine, but by default "Command used for visual compare" is VC: [what means FAR plugin Visual Compare]. I propose to change default setting in the next release to empty line or "WinMergeU.exe" and notice about it in the readme file.

And one more request. "Command used for visual compare" did not recognize environment variables. Can you solve this? Thanks.
pepak
Posts: 604
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 17 times
Been thanked: 54 times

DirSync3 — Synchronize Directories

Post by pepak »

That's definitely not true. DirSync3 does not default to Visual Compare. There isn't even any functionality for calling a plugin for visual comparison. The default command is "winmerge" (without U or .exe).

Environment variables can be arranged, will put it in my TODO list.
User avatar
Dennis_Moore
Posts: 295
Joined: Tue 03 Mar, 2015 19:54
Location: Kiev
Has thanked: 6 times
Been thanked: 17 times

DirSync3 — Synchronize Directories

Post by Dennis_Moore »

pepak wrote: That's definitely not true. DirSync3 does not default to Visual Compare. There isn't even any functionality for calling a plugin for visual comparison. The default command is "winmerge" (without U or .exe).

Environment variables can be arranged, will put it in my TODO list.
Yes, default is "WinMerge". Sorry. Maybe I was trying to use DirSync with VC file compare function [as it does AdvCmp] and forgot about it.
Post Reply

Return to “General Plug-In Discussions”