Is this ready for voting?
Which are the "End-to-end" diffs?
issue-#150 improvements in DevSearch
Re: issue-#150 improvements in DevSearch
Yes, it is ready for voting. It works
- Helmut
- Helmut
- Josef Templ
- Posts: 2047
- Joined: Tue Sep 17, 2013 6:50 am
Re: issue-#150 improvements in DevSearch
It is now available on http://www.zinnamturm.eu/downloadsAC.htm#CpcSearch.Josef Templ wrote:I have not looked into the mentioned CpcSearch extension yet but
will look at it when it is republished.
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.
- DGDanforth
- Posts: 1061
- Joined: Tue Sep 17, 2013 1:16 am
- Location: Palo Alto, California, USA
- Contact:
Re: issue-#150 improvements in DevSearch
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
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
- Josef Templ
- Posts: 2047
- Joined: Tue Sep 17, 2013 6:50 am
Re: issue-#150 improvements in DevSearch
Something is wrong with CPC.Robert wrote: It is now available on http://www.zinnamturm.eu/downloadsAC.htm#CpcSearch.
The error message is "Translation server failed".
@Helmut: can you please check this?
- Josef
Re: issue-#150 improvements in DevSearch
I couldn’t find any errors. Have you still this problem?
- Helmut
- Helmut
- Josef Templ
- Posts: 2047
- Joined: Tue Sep 17, 2013 6:50 am
Re: issue-#150 improvements in DevSearch
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
@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
Ok, I'll sort something out.Josef Templ wrote:@Robert, Helmut: please add to the docu of CpcSearch that it depends on CpcControlTips.
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
There is a new version on CPC where: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.
1 - This dependency is explicitly mentioned in the Quick-Start
&
2 - The dependency is a compile time option.