public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/1] mconf: Emacs-like isearch
@ 2018-06-06 21:56 Dirk Gouders
  2018-06-06 22:24 ` Randy Dunlap
  0 siblings, 1 reply; 9+ messages in thread
From: Dirk Gouders @ 2018-06-06 21:56 UTC (permalink / raw)
  To: Masahiro Yamada, linux-kbuild, linux-kernel; +Cc: Dirk Gouders

Hello,

being an Emacs user, I frequently find myself pressing CTRL-s in mconf
to search for some menu entry, especially in large menus.

I decided to implement a basic isearch in mconf and would like to hear
if others find this functionality useful, as well.

The new functionality is started with pressing CTRL-s followed by
characters that form the search string.  To search for further
occurences of an entered string, press CTRL-s instead of further
characters.

For example: to navigate to the USB device drivers, press CTRL-s de ENTER ENTER usb ENTER ENTER

Pressing just CTRL-s subsequently results in line-by-line navigation
through the menu (search for empty strings).

The isearch is terminated by pressing either ESC ESC or ENTER.

Because I expect that errors are found in the code and changes are requested, I
completely left out the documentation part and will add it to V2
should anyone find this functionality useful.

Thanks,

Dirk

Dirk Gouders (1):
  Emacs-like isearch for mconf.

 scripts/kconfig/lxdialog/dialog.h  |   5 ++
 scripts/kconfig/lxdialog/menubox.c | 140 ++++++++++++++++++++++++++++++++++++-
 scripts/kconfig/lxdialog/util.c    |   1 +
 3 files changed, 145 insertions(+), 1 deletion(-)

-- 
2.16.4


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-06-08  8:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-06 21:56 [RFC 0/1] mconf: Emacs-like isearch Dirk Gouders
2018-06-06 22:24 ` Randy Dunlap
2018-06-06 22:32   ` Dirk Gouders
2018-06-06 23:31     ` Randy Dunlap
2018-06-06 23:54       ` Dirk Gouders
2018-06-07  2:02         ` Masahiro Yamada
2018-06-07  5:56           ` Dirk Gouders
2018-06-07 16:32             ` Sam Ravnborg
2018-06-08  7:56               ` Dirk Gouders

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox