mouseControl problem

Ben Rubinstein benr at cogapp.com
Thu Mar 19 10:31:52 EDT 2009


DunbarX wrote:
 > I am rewriting the "ss" function in HC. Because it is there.

Jim Ault wrote:
>     ss = search script containers for a string
> 
> Rev Find is more powerful in some ways, but HC would highlight the found 
> string after opening a script container, but only for the frontmost 
> stack.  Rev Find is wider in scope.

The existing Find has the option to search in all scripts of a card, a stack, 
a stack file, and some other options I've never figured out.  It lists scripts 
which include at least one hit; double clicking the object opens the script; 
but it doesn't do anything within the script editor to help you.

On the other hand, the new (3.0) script editor is getting much closer.  It has 
an option to search in all open tabs; and gives you the results grouped 
together in a pane at the bottom, with owner of script, line number of each 
matching line, and the line itself.  You can then easily click through these 
results, with the relevant line in the relevant script being scrolled into 
view and selected.

I've requested some additions to this which I think would greatly enhance the 
functionality - perhaps to the point of no longer missing "ss".

Most importantly, that the enhanced results presentation in the new script 
editor find should be available when doing a search across all scripts that 
you might not yet have open.  I've suggested one way this might work - others 
are also possible:
http://quality.runrev.com/qacenter/show_bug.cgi?id=7321

Also, that the search results be further enhanced by including the 
function/handler/command name in the results summary.
http://quality.runrev.com/qacenter/show_bug.cgi?id=7731

In general there are quite a few issues with the new search (see also QC 
#7070, #7071 among others) but it's getting there and is very promising.  And 
in general now is probably the time to suggest/request changes, while the code 
is still fresh and raw, before the current state becomes 'the way it is'.  So 
I'd recommend that people take a look and if they see ways it's wrong, or 
could be better, to report them in QC.

- Ben




More information about the use-livecode mailing list