Mailing List Archive

menuconfig search (Re: [rfc] fix Kconfig, hotplug_cpu is needed for swsusp)
On Thu, 30 Mar 2006 10:24:30 +0200 (MEST) Jan Engelhardt wrote:

> >Most people don't seem to know
> >about '/' in make menuconfig.

That's a shame.

> I find it very confusing to use, since it returns too verbose text to skim
> through. Probably the search function should be split into "only search
> titles[*]" and "search description too".

Re verbosity: do you know that menuconfig search (/) takes regular
expressions? That could help someone limit the amount of output
from it.

Can you give an example of being too verbose?

> config UNIX
> bool "Unix socket" <-- that's a "title", as in menuconfig

The search function of menuconfig (currently) works in the namespace of
CONFIG_ symbols. It will search for a regex in the symbol tables.
Yes, someone could modify it to search thru the prompt strings of the
symbols. I don't know if that would help or not.

I have just modified menuconfig search to make displaying the
Selects: and Selected by: output be an option (actually it's a
different search command (\) to not see those lines.
Would that help any regarding verbosity?

The patch is here if you would care to try it:
http://www.xenotime.net/linux/patches/menuconfig-search2.patch

---
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Re: menuconfig search (Re: [rfc] fix Kconfig, hotplug_cpu is needed for swsusp) [ In reply to ]
On Mon, Apr 03, 2006 at 10:15:37PM -0700, Randy.Dunlap wrote:
> Re verbosity: do you know that menuconfig search (/) takes regular
> expressions? That could help someone limit the amount of output
> from it.

(Inability to jump from search screen directly to just found config option to
set/unset it AND verbose output) is broken. Verbose output solely is probably
not a big deal.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Re: menuconfig search (Re: [rfc] fix Kconfig, hotplug_cpu is needed for swsusp) [ In reply to ]
On Tue, 4 Apr 2006 10:01:56 +0400 Alexey Dobriyan wrote:

> On Mon, Apr 03, 2006 at 10:15:37PM -0700, Randy.Dunlap wrote:
> > Re verbosity: do you know that menuconfig search (/) takes regular
> > expressions? That could help someone limit the amount of output
> > from it.
>
> (Inability to jump from search screen directly to just found config option to
> set/unset it AND verbose output) is broken. Verbose output solely is probably
> not a big deal.

I don't recall seeing that ability advertised. Yes, it would be great to
have it, but I wouldn't call it broken.

---
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Re: menuconfig search (Re: [rfc] fix Kconfig, hotplug_cpu is needed for swsusp) [ In reply to ]
>> I find it very confusing to use, since it returns too verbose text to skim
>> through. Probably the search function should be split into "only search
>> titles[*]" and "search description too".
>
>Re verbosity: do you know that menuconfig search (/) takes regular
>expressions?

Regexes are not mentioned in the "Help" menu.

>That could help someone limit the amount of output
>from it.
>Can you give an example of being too verbose?

/ UNIX
Symbol: UNIX [=y]
Prompt: Unix domain sockets
Defined at net/unix/Kconfig:5
Depends on: NET
Location:
-> Networking
-> Networking support (NET [=y])
-> Networking options

Symbol: UNIXWARE_DISKSLICES ...
...


What would be more useful:
UNIX
Unix domain sockets
Networking > Networking Support > Networking options

UNIXWARE_DISKSLICES
Unixware slices support
File systems > Advanced ...

I.e. strip the Defined and Depends lines and crunch the Location lines inasfar
as that the full width of the window is used (break at col 70).

DEEP_FS
Just a symbol
File systems > Advanced filesystems > Very advanced filesystems >\n
Extremely advanced filesystems > Deep filesystem


>I have just modified menuconfig search to make displaying the
>Selects: and Selected by: output be an option (actually it's a
>different search command (\) to not see those lines.
>Would that help any regarding verbosity?

At the moment, entering e.g. UNIX in both the / and \ menus return the very
same output. Bug?

The \ should include everything what the original / had, plus the symbol
description ("Say Y here if ....").



Jan Engelhardt
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Re: menuconfig search (Re: [rfc] fix Kconfig, hotplug_cpu is needed for swsusp) [ In reply to ]
On Sat, 8 Apr 2006 10:42:46 +0200 (MEST) Jan Engelhardt wrote:

> >> I find it very confusing to use, since it returns too verbose text to skim
> >> through. Probably the search function should be split into "only search
> >> titles[*]" and "search description too".
> >
> >Re verbosity: do you know that menuconfig search (/) takes regular
> >expressions?
>
> Regexes are not mentioned in the "Help" menu.

It is mentioned in the Help text after one enters '/'.

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


> >That could help someone limit the amount of output
> >from it.
> >Can you give an example of being too verbose?
>
> / UNIX
> Symbol: UNIX [=y]
> Prompt: Unix domain sockets
> Defined at net/unix/Kconfig:5
> Depends on: NET
> Location:
> -> Networking
> -> Networking support (NET [=y])
> -> Networking options
>
> Symbol: UNIXWARE_DISKSLICES ...
> ...
>
>
> What would be more useful:
> UNIX
> Unix domain sockets
> Networking > Networking Support > Networking options
>
> UNIXWARE_DISKSLICES
> Unixware slices support
> File systems > Advanced ...
>
> I.e. strip the Defined and Depends lines and crunch the Location lines inasfar
> as that the full width of the window is used (break at col 70).

I don't see any need to limit it to 70 columns wide. It knows how to
scroll left/right (using arrow keys).


> DEEP_FS
> Just a symbol
> File systems > Advanced filesystems > Very advanced filesystems >\n
> Extremely advanced filesystems > Deep filesystem
>
>
> >I have just modified menuconfig search to make displaying the
> >Selects: and Selected by: output be an option (actually it's a
> >different search command (\) to not see those lines.
> >Would that help any regarding verbosity?
>
> At the moment, entering e.g. UNIX in both the / and \ menus return the very
> same output. Bug?
>
> The \ should include everything what the original / had, plus the symbol
> description ("Say Y here if ....").

Nope, the only thing that the "reduced" search excludes atm is SELECT info.
From my original email, as you quoted above, the less-verbose '\' search
only eliminates the Selects: and Selected by: output, and the UNIX
config symbols don't have any SELECT info.

I don't know if we are converging any, but I made a new patch:
http://www.xenotime.net/linux/patches/menuconfig-search2b.patch

This one changes the default '/' search to NOT be verbose and the
new, extended '\' search to be verbose. The non-verbose search omits
Selects:, Selected by:, and Location: information.

---
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Re: menuconfig search (Re: [rfc] fix Kconfig, hotplug_cpu is needed for swsusp) [ In reply to ]
>> I.e. strip the Defined and Depends lines and crunch the Location lines inasfar
>> as that the full width of the window is used (break at col 70).
>
>I don't see any need to limit it to 70 columns wide. It knows how to
>scroll left/right (using arrow keys).
>
Not because it does not know how to horizontally scroll, but because it
takes quite some time for the user to scroll left/right. There's no Home or
End key for the horizontal direction.

>I don't know if we are converging any, but I made a new patch:
> http://www.xenotime.net/linux/patches/menuconfig-search2b.patch

Yes, this one looks good and satisfies me.

Acked-by: Jan Engelhardt <jengelh@gmx.de>


Jan Engelhardt
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/