Re: Wish: exact matches displayed first

Yann E. MORIN
2013-05-06T14:27:17Z

Jean, All,

On Mon, May 06, 2013 at 04:19:51PM +0200, Jean Delvare wrote:
> Le Monday 06 May 2013 à 15:53 +0200, Yann E. MORIN a écrit :
> > Thomas, All,
> >
> > On Mon, May 06, 2013 at 03:04:46PM +0200, Thomas Petazzoni wrote:
> > > On Mon, 6 May 2013 14:54:59 +0200, Yann E. MORIN wrote:
> > > > BTW, did you know that you can search using extended regular expressions?
> > > > Searching for ^PCI$ will yield only the CONFIG_PCI symbol.
> > >
> > > Wow, I didn't know that. Is this documented/advertised somewhere?
> >
> > Yes. In Documentation/kbuild/kconfig.txt:
> >
> > [...] This will tell you that you can also use
> > regular expressions (regexes) in the search string, [...]
>
> Maybe this could be mentioned in the prompt itself, for all the
> ignorants amongst us?

In the search dialog, if you select 'Help', you'll get:

Search for symbols and display their relations.
Regular expressions are allowed.
Example: search for "^FOO"

I guess it being presented in the help text is enough, no? ;-)

Regards,
Yann E. MORIN.

--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'