Page 2 of 2

Re: issue-#150 improvements in DevSearch

Posted: Wed Mar 15, 2017 9:19 pm
by Robert
Is this ready for voting?
Which are the "End-to-end" diffs?

Re: issue-#150 improvements in DevSearch

Posted: Thu Mar 16, 2017 7:35 am
by Zinn
Yes, it is ready for voting. It works
- Helmut

Re: issue-#150 improvements in DevSearch

Posted: Thu Mar 16, 2017 1:47 pm
by Josef Templ
here are the end-to-end diffs: https://redmine.blackboxframework.org/p ... 09ddc6ad20.

- Josef

Re: issue-#150 improvements in DevSearch

Posted: Sat May 27, 2017 7:28 am
by Robert
Josef Templ wrote:I have not looked into the mentioned CpcSearch extension yet but
will look at it when it is republished.
It is now available on http://www.zinnamturm.eu/downloadsAC.htm#CpcSearch.

I wrote this a very long time ago, and would probably do it differently now. I don't suggest that it is a replacement for the current tool,
but I do think it has some interesting ideas; examples of things we might want to copy and things we want to avoid.

My starting point was I wanted a little more capability than the BlackBox tool, but not as much as regular expressions as using
them was too big a learning curve. I thought that implementing the Microsoft wildcards ('?' & '*') would be good.

Inevitably things just grew; it has 12 wildcards, text colour and treatment filters, and other features (more detail below).

While I do use all these features, most are used very rarely, so it is probably not the right balance between capability & simplicity?

Features that do get used frequently are:
"*", "?", search for bold text, lock search to start of line, lock search to end of line, & replace by upper or lower case.

But the one incidental feature that I most value is the way it keeps the last few search & replace strings in drop-down Controls, even between BlackBox sessions.

Re: issue-#150 improvements in DevSearch

Posted: Sat May 27, 2017 8:17 am
by DGDanforth
Since we are talking about search, I offer GftSearchFile as an alternative.
Its main difference from other search routines is it simultaneously searches
for several strings at the same time, e.g "uppercase" OR "upper case".
It builds a finite state machine of the search patterns and then roars through
a file examining each character only once. Search time is linear in the length of
the file and independent of the number of patterns and their length.

The code is on CPC under GftSearch.

-Doug

Re: issue-#150 improvements in DevSearch

Posted: Mon May 29, 2017 12:45 pm
by Josef Templ
Robert wrote: It is now available on http://www.zinnamturm.eu/downloadsAC.htm#CpcSearch.
Something is wrong with CPC.

The error message is "Translation server failed".

@Helmut: can you please check this?

- Josef

Re: issue-#150 improvements in DevSearch

Posted: Tue May 30, 2017 6:06 am
by Zinn
I couldn’t find any errors. Have you still this problem?
- Helmut

Re: issue-#150 improvements in DevSearch

Posted: Tue May 30, 2017 9:39 am
by Josef Templ
CPC is working again now.

@Robert, Helmut: please add to the docu of CpcSearch that it depends on CpcControlTips.
If CpcControlTips is not available most buttons open as alien views.
The alternative would be to remove the dependency on CpcControlTips.

- Josef

Re: issue-#150 improvements in DevSearch

Posted: Tue May 30, 2017 5:14 pm
by Robert
Josef Templ wrote:@Robert, Helmut: please add to the docu of CpcSearch that it depends on CpcControlTips.
Ok, I'll sort something out.

Incidently I think ControlTips is a useful idea, but my implementation is not appealing.
Maybe someone who knows a little about the Winapi might want to suggest such a feature for the Center distribution?

Re: issue-#150 improvements in DevSearch

Posted: Wed Jun 07, 2017 5:59 pm
by Robert
Josef Templ wrote:Robert, Helmut: please add to the docu of CpcSearch that it depends on CpcControlTips.
If CpcControlTips is not available most buttons open as alien views.
The alternative would be to remove the dependency on CpcControlTips.
There is a new version on CPC where:
1 - This dependency is explicitly mentioned in the Quick-Start
&
2 - The dependency is a compile time option.