DirSync3 — Synchronize Directories

Here you can discuss about your favorite plug-in.
User avatar
Wave
Posts: 1707
Joined: Thu 04 Aug, 2005 18:47
Location: Харьков, Украина
Has thanked: 2 times
Been thanked: 9 times
Contact:

DirSync — Synchronize Directories

Post by Wave » Thu 23 Jul, 2015 23:35

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
Пользуюсь ФАРом больше 15 лет © собирательный.

pepak
Posts: 312
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 1 time
Been thanked: 9 times

DirSync — Synchronize Directories

Post by pepak » Fri 24 Jul, 2015 03:56

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: 1707
Joined: Thu 04 Aug, 2005 18:47
Location: Харьков, Украина
Has thanked: 2 times
Been thanked: 9 times
Contact:

DirSync — Synchronize Directories

Post by Wave » Fri 24 Jul, 2015 07:59

Thanks!
Пользуюсь ФАРом больше 15 лет © собирательный.

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

DirSync — Synchronize Directories

Post by John Doe » Fri 24 Jul, 2015 09:06


pepak
Posts: 312
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 1 time
Been thanked: 9 times

DirSync — Synchronize Directories

Post by pepak » Fri 24 Jul, 2015 09:25

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

DirSync — Synchronize Directories

Post by John Doe » Fri 24 Jul, 2015 09:34

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: 312
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 1 time
Been thanked: 9 times

DirSync — Synchronize Directories

Post by pepak » Fri 24 Jul, 2015 09:46

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

DirSync — Synchronize Directories

Post by John Doe » Fri 24 Jul, 2015 09:56

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: 312
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 1 time
Been thanked: 9 times

DirSync — Synchronize Directories

Post by pepak » Fri 24 Jul, 2015 10:05

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

DirSync — Synchronize Directories

Post by John Doe » Fri 24 Jul, 2015 10:15

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: 312
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 1 time
Been thanked: 9 times

DirSync3 — Synchronize Directories

Post by pepak » Sat 18 Feb, 2017 10:13

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: 207
Joined: Tue 03 Mar, 2015 19:54
Location: Kiev
Has thanked: 4 times
Been thanked: 9 times

DirSync3 — Synchronize Directories

Post by Dennis_Moore » Sun 26 Feb, 2017 14:49

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: 312
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 1 time
Been thanked: 9 times

DirSync3 — Synchronize Directories

Post by pepak » Sun 26 Feb, 2017 15:00

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: 207
Joined: Tue 03 Mar, 2015 19:54
Location: Kiev
Has thanked: 4 times
Been thanked: 9 times

DirSync3 — Synchronize Directories

Post by Dennis_Moore » Sun 26 Feb, 2017 15:11

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: 312
Joined: Sun 13 Jul, 2008 11:18
Has thanked: 1 time
Been thanked: 9 times

DirSync3 — Synchronize Directories

Post by pepak » Sun 26 Feb, 2017 15:18

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: 207
Joined: Tue 03 Mar, 2015 19:54
Location: Kiev
Has thanked: 4 times
Been thanked: 9 times

DirSync3 — Synchronize Directories

Post by Dennis_Moore » Sun 26 Feb, 2017 15:26

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.

User avatar
Dennis_Moore
Posts: 207
Joined: Tue 03 Mar, 2015 19:54
Location: Kiev
Has thanked: 4 times
Been thanked: 9 times

DirSync3 — Synchronize Directories

Post by Dennis_Moore » Sun 26 Feb, 2017 15:37

pepak wrote: Environment variables can be arranged, will put it in my TODO list.
Temporary solution. Using EnvMan with something like this:

Code: Select all

FAREXTPRG=%SYSTEMDRIVE%\Program Files\FAR_ExtPrg
PATH=%FAREXTPRG%\WinMerge;%PATH%

Post Reply

Return to “General Plug-In Discussions”

Who is online

Users browsing this forum: No registered users and 1 guest