Sync dirs ignore plugins settings

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
SailorMax
Member
Member
Posts: 121
Joined: 2007-03-15, 15:11 UTC

Sync dirs ignore plugins settings

Post by *SailorMax »

Task: sync all files except dot files/directories (.git/*, .gitignore,..)

Steps:
1. open sync dialog
2. setup plugins (+button):
- Use plugin compare functions
- Add / Define / Plugins / Search in plugins:
-- tc | fullname | !regex | ^\.
-- tc | path | !regex | \\\.
3. Save
4. Ok
5. Compare

Exp.: Preview compare all files except dot files/directories

Act.: Preview compare all files without excepts

TC 9b15
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

2. setup plugins (+button):
Sorry I there is no such button at "Synchronize Dir" dialog.

The only place I found such button is at "Search" dialog, but for search text only ...
#5767 Personal license
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

SailorMax,
Plugins in Sync dialog may only be used for custom compare by contents algorithms, e.g. for comparing text files with ignoring line break type (that's why this small button is near compare by contents option and is only visible when the option is enabled), you can't use them for excluding files from sync.

In order to exclude some files you should add these files to global ignore list or use filter mask in Sync dialog (between left and right path fields), e.g.:

Code: Select all

*.* | .git\ .gitignore
SailorMax
Member
Member
Posts: 121
Joined: 2007-03-15, 15:11 UTC

Post by *SailorMax »

MVV,
But if I need exclude all dot-files/folders? Is it possible?

Did not supporting file filters via "Define selection", where we can fill fields like "Search for" and "Date between" and setup tc-plugin fields - is a confusing behavior.
SailorMax
Member
Member
Posts: 121
Joined: 2007-03-15, 15:11 UTC

Post by *SailorMax »

sqa_wizard,
Setup checkbox "by content" in "Synchronize Dir" dialog.
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

But if I need exclude all dot-files/folders? Is it possible?
Use this in the filter mask:

Code: Select all

*|.* .*\
it will exclude all files and folder that start with a dot.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply