Sync Dirs: 'Select for copying' action on 'Unequal files'

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Sync Dirs: 'Select for copying' action on 'Unequal files'

Post by *DrShark »

New GUI or wincmd.ini to define behaviour for
"Select for copying (default direction)" context menu operation,
to be applied only for Unequal files.

The sense of option is to change (mark) the direction of Unequal files to
"From right to left" or "From left to right" using "Select for copying (default direction)" option
based on, for example, date criteria, like set direction to replace older files with newer.

Example: I select some or all Unequal files in Synch Dirs window, call "Select for copying (default direction)", and
possible new suboption like "Apply to both | left | right | side(s)", and
get Unequal mark changed to "to left" or "to right", so Synch will replace old files with newer.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

If you do not ignore dates during comparison, TC selects default copy direction by comparing file dates.
But if you tell TC to ignore dates, TC can't decide which file should be kept.

I would disable this menu item at all when dates are ignored because it does nothing in such case (it doesn't change direction at all).
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

MVV wrote:If you do not ignore dates during comparison, TC selects default copy direction by comparing file dates.
But if you tell TC to ignore dates, TC can't decide which file should be kept.
Here I have to rely on TC's "artificial intelligence" ("TC selects"), I want to have more control on the process.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

But you haven't mention any other criteria except timestamp, but it is a main part of request as I understand. :)
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

MVV wrote:But you haven't mention any other criteria except timestamp, but it is a main part of request as I understand. :)
Even with just a timestamp, I want to decide what files (selecled or all) to be copied in what direction (right or left, older to replace newer or newer with older, or maybe I want to delete some). I want to do it manually having "Unequal files" files list in front of my eyes :)
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

OK, there's an improvement to my suggestion. It's still based on date criteria,
but I hope it can be expanded to another criterias too.

So, for Unequal files (if only they are left after previous sync actions, or selected, or if ony this filter initially applied),
"Select for copying (default direction) (Ctrl+D)" menu must be renamed to
"Select for copying", with following submenus:
-> "Mark to default direction (Ctrl+D)" (do what disabled "Ignore dates" does).
-> "Left side"
--> "Newer to right"
--> "Older to right"
--> "Delete newer" (with SHIFT key pressed - forever; deleting files on left side newer then from right)
--> "Delete older" (with SHIFT key pressed - forever)
-> "Right side"
--> "Newer to left"
--> "Older to left"
--> "Delete newer" (with SHIFT key pressed - forever)
--> "Delete older" (with SHIFT key pressed - forever)
Last edited by DrShark on 2015-11-02, 13:26 UTC, edited 4 times in total.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Left/Right and Delete left/right are already available from main context menu itself...
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

MVV wrote:Left/Right and Delete left/right are already available from main context menu itself...
Yeah, but they can't mark or delete using date criterea.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I think a separate submenu would be better in your case, there is no need in modifying existing commands...
Post Reply