Re: [PATCH] scripts: kconfig: implement a sort method

From: Randy Dunlap
Date: Tue Apr 11 2017 - 14:53:42 EST


On 04/11/17 04:12, Felipe Balbi wrote:
> With a growing amount of Kernel configuration, it's
> getting ever more difficult to find anything on
> menuconfig. Because of that, implement mergesort for
> kconfig to make it a little easier for anybody
> building kernels.

Search works for me, but I don't mind Sort either.

Why only menuconfig? Is it the one that you use mostly?

Any Help text for Sort? or is it obvious what it does? (no)


In an 80x25 terminal (window), the < Sort > option wraps around
past column 80.

I haven't looked at the source code (lately), but I think that it
would OK to not have the (extra) spaces inside the <...> brackets.
I.e., instead of
â <Select> < Exit > < Help > < Save > < Load > < Sort
>
just have
â <Select> <Exit> <Help> <Save> <Load> <Sort>

Or the <Select> does not need to be indented as much as it is.


And BTW, Yann made kconfig an orphan today. :(


> Signed-off-by: Felipe Balbi <felipe.balbi@xxxxxxxxxxxxxxx>
> ---
> scripts/kconfig/lxdialog/menubox.c | 18 +++++----
> scripts/kconfig/mconf.c | 83 +++++++++++++++++++++++++++++++++++---
> 2 files changed, 89 insertions(+), 12 deletions(-)


--
~Randy