Sticky filter option for Synchronize directories

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
stepho-wrs
Junior Member
Junior Member
Posts: 5
Joined: 2022-02-15, 01:40 UTC

Sticky filter option for Synchronize directories

Post by *stepho-wrs »

I use Synchronize directories a lot for comparing multiple versions of projects.
Unfortunately these projects often have lots of generated files or subdirectories in them that I usually wish to filter out.
There is a nice wildcard filter element in the GUI that does this but each time I re-enter Synchonize directories I need to re-select the filter from its pull-down history list.

Is it possible to have an option to make the filter selection become sticky - ie default to remembering the last filter used ?

Thanks.
User avatar
petermad
Power Member
Power Member
Posts: 16106
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Sticky filter option for Synchronize directories

Post by *petermad »

2stepho-wrs
There is a little button in the upper left corner of the Sync tool - you can use this to save different setups of the tool including the wildcard filter.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
stepho-wrs
Junior Member
Junior Member
Posts: 5
Joined: 2022-02-15, 01:40 UTC

Re: Sticky filter option for Synchronize directories

Post by *stepho-wrs »

Thank you for your reply.
Not sure which button you meant.

The yellow folder icon with a star allows me to save directories and the wildcard.
However, it still requires me to select something.

The "++" icon among the checkboxes seems to allow selecting a filter but I couldn't see how to apply it.
Regardless, it still requires me to select something before doing my search.

In both cases, every time I re-enter the tool I am forced to re-select the filter.
I can already do this via the pull-down on the filter itself.
What I would really like is for it to remember my last setting and to use that remembered setting automatically - without me having to select anything at all.

My typical filter looks like:
*.c;*.cpp;*.h|.git\;*.a;*.elf;*.bin;*.map;*.sr;*.err;*.warning;*.tag;*.o;*.d;*.gcno;*.lst;.*;*.xml;*.htm*;*.png;*.js;*.bak;pmccabe.txt;Docs\
I use this a lot for comparing snapshots of projects.
My thought process is usually like:
- need to compare snapshots
- select snapshot folders
- start compare/sync tool
- click "compare"
- grind teeth when it starts searching through the .git folders or compares object files
- abort search
- select filter from pull down
- start compare again, with my flow of though broken

My thought pattern is on "compare 2 folders".
The extra step of selecting filters is not part of the thought process, so is easy to skip.
I'd really like to avoid the aggravation of having to abort and redo the compare.
User avatar
Dalai
Power Member
Power Member
Posts: 10019
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Sticky filter option for Synchronize directories

Post by *Dalai »

2stepho-wrs
After you've saved your sync profile you can use the SYNCOPEN command to load a specific profile, e.g. via a button. Example: SYNCOPEN profile_with_filter. Put that command on a button and click that instead of the usual way to open the sync directories function. See also the cm_CommandBrowser command, the TC help and totalcmd.inc file for details on this command - and any other command, for that matter.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
stepho-wrs
Junior Member
Junior Member
Posts: 5
Joined: 2022-02-15, 01:40 UTC

Re: Sticky filter option for Synchronize directories

Post by *stepho-wrs »

That worked very well.
Thank you very much.
Apologies for not answering sooner - work sometimes gets hectic.
Post Reply