TC Changes Viewer 2.50 Final

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: TC Changes Viewer 2.50 Beta 1

Post by *Stefan2 »

Hi Taher,

>>"What is *s? mean?"
Stars
Star => *
Stars=> *s
If user uses "pattern matching"-mode, put a star yourself before and after the typed in search term.
So "copy*file" will find something, w/o the need for the user to type "*copy*file*"


>>"..how can i know whether you mean .."
Alternative 1: use a dedicated option for wildcard search, w/o the need to insert stars.
Even currently I can use normal search for "copy file", and pattern matching-mode to search for "copy * file".
Alternative 2: interpret "term in quotes" as explicit search request, and without quotes as 'search any term anywhere in string' -mode.


>>"editor with regex"
No need for slow RegEx, just search lines with first search term and store line into temp_variable.
Next search temp_variable for second term and store result in temp_2_var.
Next search temp_2_var... maybe allow up to ten terms to search, at the end your last temp_x_var contains the result to present.

And even if I would use RegEx, I would split the search terms and try every permutation.

or more like:

Code: Select all

lineS=split(TextInput, CRLF)
patternS=split(PatternInput, SPACE)
intPatternCount=Len(patternS)
intFound=0
OUT=""
foreach Line in lineS
	foreach Pattern in patternS
		If Pattern found Then intFound++
		If intFound==intPatternCount Then OUT=OUT+Line + break
	next
next
show(OUT)

>>"Do you know any program do that?"
Yes, currently I use MuseTips Text Filter > http://www.musetips.com/text-filter.html


Just ideas...
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Re: TC Changes Viewer 2.50 Beta 1

Post by *ts4242 »

No need for using Regex, inserting * before and after the search term will be enough.

Yes, currently I use MuseTips Text Filter > http://www.musetips.com/text-filter.html
I see.
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Re: TC Changes Viewer 2.50 Beta 1

Post by *ts4242 »

Download TC Changes Viewer 2.50 Beta 2

What's new
Added: Find dialog: when "Use pattern matching" checked, auto enclose (internally) search word between two asterisks. (can be disabled by adding StrictPatternMatch=1 under [TC_Changes_Viewer] section in "tc changes viewer.ini")

Fixed: Minor bugs.

If you enjoy using TC Changes Viewer, Please help the developer with a small donation.
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Re: TC Changes Viewer 2.50 Beta 2

Post by *ts4242 »

Download TC Changes Viewer 2.50 Final (VirusTotal scan result (0 / 69))
User avatar
Helix751
Senior Member
Senior Member
Posts: 239
Joined: 2004-06-16, 21:16 UTC
Location: Chile

Re: TC Changes Viewer 2.50 Final

Post by *Helix751 »

Great and useful utility I use when beta updates and releases come out.

There's an issue with current TC's use of UTF-8 BOM encoded HISTORY.txt files. These files' 3 initial chars () fool the utility and it displays garbled information for the 1st line.
It's not critical, but it looks ugly.
Regards,
Sergio

TCmd license #12059
TC11.03x86/x64 | Win11 Pro
User avatar
Ronson
Junior Member
Junior Member
Posts: 65
Joined: 2003-05-24, 23:33 UTC
Location: Bayern

Re: TC Changes Viewer 2.50 Final

Post by *Ronson »

You must insert a blank line at the beginning of the text.

https://webmail.freenet.de/Cloud/?shareToken=d51ff3a93fd37274c313b305f98ca28903f6052f

Best regards
User avatar
Helix751
Senior Member
Senior Member
Posts: 239
Joined: 2004-06-16, 21:16 UTC
Location: Chile

Re: TC Changes Viewer 2.50 Final

Post by *Helix751 »

Ronson wrote: 2024-11-14, 19:23 UTC You must insert a blank line at the beginning of the text.
Yes, I'm aware of the possible workarounds: insert a blank line or converting the file to UTF-8 (no BOM) or ANSI. But this is necessary after each TC update. it would be cleaner to have this addressed in the plugin, if possible and its dev is still active.
Regards,
Sergio

TCmd license #12059
TC11.03x86/x64 | Win11 Pro
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: TC Changes Viewer 2.50 Final

Post by *Gral »

User avatar
Helix751
Senior Member
Senior Member
Posts: 239
Joined: 2004-06-16, 21:16 UTC
Location: Chile

Re: TC Changes Viewer 2.50 Final

Post by *Helix751 »

Gral wrote: 2024-12-04, 13:58 UTC viewtopic.php?p=403026#p403026
:( Totally speechless. Didn't know. May he rest in peace.
Regards,
Sergio

TCmd license #12059
TC11.03x86/x64 | Win11 Pro
Post Reply