Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753915AbbBKR3O (ORCPT ); Wed, 11 Feb 2015 12:29:14 -0500 Received: from cpsmtpb-ews06.kpnxchange.com ([213.75.39.9]:55883 "EHLO cpsmtpb-ews06.kpnxchange.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753858AbbBKR3K (ORCPT ); Wed, 11 Feb 2015 12:29:10 -0500 Message-ID: <1423675746.21685.53.camel@x220> Subject: Re: [PATCH] menuconfig: Search from everywhere From: Paul Bolle To: Alexander Kuleshov Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Date: Wed, 11 Feb 2015 18:29:06 +0100 In-Reply-To: <1423487532-27968-1-git-send-email-kuleshovmail@gmail.com> References: <1423487532-27968-1-git-send-email-kuleshovmail@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4 (3.10.4-4.fc20) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 11 Feb 2015 17:29:06.0670 (UTC) FILETIME=[3CCCD8E0:01D04620] X-RcptDomain: vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2440 Lines: 74 [Removed Yann. Web searches should explain why.] On Mon, 2015-02-09 at 19:12 +0600, Alexander Kuleshov wrote: > If we want to see search window again, for example after typo > or for another search, we need to press on '< Exit >' and than then > execute new search. Let's make '/' active everywhere. Everywhere or just in the "Search Results" screen itself? A drawback of menuconfig is its stacked interface. Each search and jump pushes two screens to its stack of screens. I'm often surprised at the number of screens I generated by searching around a bit. Does searching from withing search results again push another screen onto the stack? Anyhow, if hitting enter and "/" bothers you a redesign of the search functionality would be a better idea. Eg, make it have a input area on top (to type in the query) and an text area below it (to display results). Which is probably not worth the, presumably rather big, effort. > Signed-off-by: Alexander Kuleshov > --- > scripts/kconfig/lxdialog/textbox.c | 4 ++++ > scripts/kconfig/mconf.c | 8 ++++++++ > 2 files changed, 12 insertions(+) > > diff --git a/scripts/kconfig/lxdialog/textbox.c b/scripts/kconfig/lxdialog/textbox.c > index 1773319..958770d 100644 > --- a/scripts/kconfig/lxdialog/textbox.c > +++ b/scripts/kconfig/lxdialog/textbox.c > @@ -141,6 +141,10 @@ do_resize: > while (!done) { > key = wgetch(dialog); > switch (key) { > + case '/': > + key = 9; > + done = true; > + break; > case 'E': /* Exit */ > case 'e': > case 'X': > diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c > index 4dd3755..d49fa45 100644 > --- a/scripts/kconfig/mconf.c > +++ b/scripts/kconfig/mconf.c > @@ -446,7 +446,15 @@ again: > str_get(&res), 0, 0, keys, &vscroll, > &hscroll, &update_text, (void *) > &data); > + if (dres == 9) { > + free(sym_arr); > + str_free(&title); > + list_del(trail.prev); > + str_free(&sttext); > + search_conf(); > + return; > + } > + > again = false; > for (i = 0; i < JUMP_NB && keys[i]; i++) > if (dres == keys[i]) { Thanks, Paul Bolle -- 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/