Re: improving the help system
Yann LeCun <[email protected]> Wed, 3 Dec 2008 10:23:19 -0500
| Newsgroups | gmane.lisp.lush.devel |
|---|---|
| Message-ID | <[email protected]> |
Should be easy to do. When a search is performed, a lambda is being created that contains a regex-seek. The lambda is applied to all manual entries. You would need to change the regex-seek to only look into the first word after the paren (if the entry is an s-expression). This lambda is created in function apropos in lsh/libstd/help.lsh and in method setfilter of the class Explorer in lsh/libogre/treebrowser.lsh -- Yann On Tuesday 02 December 2008, Ralf Juengling wrote: > One thing that has annoyed me for a long time is that > lush's online help sometimes overwhelms with answers. > I usually use the ^A command key to search for functions > when I can't remember the exact function name or > arguments. What's the function that pulls out the maximum > element in an array? > > ? ^Amax > 451 matches, show anyway (y/n) [n]> n > > The problem here is that "max" is part of many function > names in a dozens packages. But I am not interested in > those packages here. It would be nice to have a second search > command that only searches for function names that are > currently defined. Yann, would it be reasonably easy to > implement this on top of the current help system? > > Ralf > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Lush-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/lush-devel ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/