issue-#150 improvements in DevSearch

Merged to the master branch
User avatar
Robert
Posts: 1024
Joined: Sat Sep 28, 2013 11:04 am
Location: Edinburgh, Scotland

Re: issue-#150 improvements in DevSearch

Post by Robert »

Is this ready for voting?
Which are the "End-to-end" diffs?
Zinn
Posts: 476
Joined: Tue Mar 25, 2014 5:56 pm
Location: Frankfurt am Main
Contact:

Re: issue-#150 improvements in DevSearch

Post by Zinn »

Yes, it is ready for voting. It works
- Helmut
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#150 improvements in DevSearch

Post by Josef Templ »

here are the end-to-end diffs: https://redmine.blackboxframework.org/p ... 09ddc6ad20.

- Josef
User avatar
Robert
Posts: 1024
Joined: Sat Sep 28, 2013 11:04 am
Location: Edinburgh, Scotland

Re: issue-#150 improvements in DevSearch

Post 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.
User avatar
DGDanforth
Posts: 1061
Joined: Tue Sep 17, 2013 1:16 am
Location: Palo Alto, California, USA
Contact:

Re: issue-#150 improvements in DevSearch

Post 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
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#150 improvements in DevSearch

Post 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
Zinn
Posts: 476
Joined: Tue Mar 25, 2014 5:56 pm
Location: Frankfurt am Main
Contact:

Re: issue-#150 improvements in DevSearch

Post by Zinn »

I couldn’t find any errors. Have you still this problem?
- Helmut
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#150 improvements in DevSearch

Post 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
User avatar
Robert
Posts: 1024
Joined: Sat Sep 28, 2013 11:04 am
Location: Edinburgh, Scotland

Re: issue-#150 improvements in DevSearch

Post 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?
User avatar
Robert
Posts: 1024
Joined: Sat Sep 28, 2013 11:04 am
Location: Edinburgh, Scotland

Re: issue-#150 improvements in DevSearch

Post 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.
Post Reply