Page 1 of 1
Sticky filter option for Synchronize directories
Posted: 2022-02-15, 01:54 UTC
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.
Re: Sticky filter option for Synchronize directories
Posted: 2022-02-15, 09:11 UTC
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.
Re: Sticky filter option for Synchronize directories
Posted: 2022-02-16, 00:14 UTC
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.
Re: Sticky filter option for Synchronize directories
Posted: 2022-02-16, 00:20 UTC
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
Re: Sticky filter option for Synchronize directories
Posted: 2022-03-03, 05:35 UTC
by stepho-wrs
That worked very well.
Thank you very much.
Apologies for not answering sooner - work sometimes gets hectic.