From: Alexander Kuleshov <kuleshovmail@gmail.com>
To: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org,
Alexander Kuleshov <kuleshovmail@gmail.com>
Subject: [PATCH] menuconfig: Search from everywhere
Date: Mon, 9 Feb 2015 19:12:12 +0600 [thread overview]
Message-ID: <1423487532-27968-1-git-send-email-kuleshovmail@gmail.com> (raw)
If we want to see search window again, for example after typo
or for another search, we need to press on '< Exit >' and than
execute new search. Let's make '/' active everywhere.
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
---
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]) {
--
2.3.0
next reply other threads:[~2015-02-09 13:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-09 13:12 Alexander Kuleshov [this message]
2015-02-11 17:29 ` [PATCH] menuconfig: Search from everywhere Paul Bolle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1423487532-27968-1-git-send-email-kuleshovmail@gmail.com \
--to=kuleshovmail@gmail.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yann.morin.1998@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox