Text search in Synchronize directories

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
GerA
Junior Member
Junior Member
Posts: 9
Joined: 2012-07-18, 14:02 UTC
Location: NL

Text search in Synchronize directories

Post by *GerA »

Hi

I have a search filter defined and saved:

search for: *.txt;*.ini
find text: [Data]

and when I use this filter in synchronize directories the 'search for' is applied but the 'find text' is NOT.

Is this a bug or am I doing it wrong?
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: Text search in Synchronize directories

Post by *Gral »

GerA wrote: 2022-09-20, 12:25 UTC ...Is this a bug or am I doing it wrong?
How do you load saved search?
From dropdown list as "*.txt;*.ini" or from "1x" button?
The latter is a right way.
GerA
Junior Member
Junior Member
Posts: 9
Joined: 2012-07-18, 14:02 UTC
Location: NL

Re: Text search in Synchronize directories

Post by *GerA »

Hi Gral, I use the "1x" button.
User avatar
Gral
Power Member
Power Member
Posts: 1460
Joined: 2005-01-26, 15:12 UTC

Re: Text search in Synchronize directories

Post by *Gral »

And you choose one of the saved search then?
GerA
Junior Member
Junior Member
Posts: 9
Joined: 2012-07-18, 14:02 UTC
Location: NL

Re: Text search in Synchronize directories

Post by *GerA »

Yes, I choose one of the saved search.

In the dropdown it then shows ">*.txt;*.ini containing Data section"
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Text search in Synchronize directories

Post by *ghisler(Author) »

Could you try to rename the saved search? The wildcards in the name are probably causing your problems.
In my tests, the content search seems to work also in synchronize dirs.
Author of Total Commander
https://www.ghisler.com
GerA
Junior Member
Junior Member
Posts: 9
Joined: 2012-07-18, 14:02 UTC
Location: NL

Re: Text search in Synchronize directories

Post by *GerA »

Hi,

After renaming the searchcriteria it seems to work. Thanks.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Text search in Synchronize directories

Post by *ghisler(Author) »

I have checked the code - it doesn't work when the name contains at least one semicolon ";". The reason is that the function expects wildcards separated by spaces, not semicolons, e.g.
*.txt *.ini
not
*.txt;*.ini
so they get replaced. While this works when you enter wildcards directly, it fails when you use a stored search name, which was added much later. I will disable the function which replaces ";" by " " when using a stored search.
Author of Total Commander
https://www.ghisler.com
GerA
Junior Member
Junior Member
Posts: 9
Joined: 2012-07-18, 14:02 UTC
Location: NL

Re: Text search in Synchronize directories

Post by *GerA »

Hi Christian, thanks for the explanation.

Solved! (I was looking for a 'solved' button in the forum but I couldn't find one)
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Text search in Synchronize directories

Post by *petermad »

GerA wrote: 2022-09-29, 08:12 UTC Solved! (I was looking for a 'solved' button in the forum but I couldn't find one)
You can edit your first post in this thread and add [Solved] to the start of the subject.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Text search in Synchronize directories

Post by *ghisler(Author) »

I have fixed this in TC 10.52 release candidate 1 and later, please check it! So now you can use semicolons ";" in the names of saved searches and use them in synchronize direcories.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Text search in Synchronize directories

Post by *ghisler(Author) »

This should be fixed in TC 11 beta (actually already in 10.52), please test it.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Text search in Synchronize directories

Post by *petermad »

2ghisler(Author)
GerA already confirmed it solved in his post from Thursday 29-09-2022, 10:12:47
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply