From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.codeaurora.org by pdx-caf-mail.web.codeaurora.org (Dovecot) with LMTP id MKKCB4teGFsWNQAAmS7hNA ; Wed, 06 Jun 2018 22:24:22 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 77BFB60861; Wed, 6 Jun 2018 22:24:22 +0000 (UTC) Authentication-Results: smtp.codeaurora.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="wqgi3Q/M" X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by smtp.codeaurora.org (Postfix) with ESMTP id E1360607E4; Wed, 6 Jun 2018 22:24:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E1360607E4 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752979AbeFFWYU (ORCPT + 25 others); Wed, 6 Jun 2018 18:24:20 -0400 Received: from merlin.infradead.org ([205.233.59.134]:38248 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752772AbeFFWYS (ORCPT ); Wed, 6 Jun 2018 18:24:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=WB7FjisGBiJ6kjZmg0gdN+KO0XC+pTEDD+e56c92DXc=; b=wqgi3Q/MDm7eGvZgrD4zstlIxm kg9RQgCGmePsNv1MNBba0SOoLX6wmcRfP5uTnMjPxm08tN1Dm7oYUx5ULKiWX8GpMEAGfBXfkjFDQ 6xgV4wp9J/Ne8lkELFRt9XTzMRMrHno9ywjk5Bqvsclau4lRYTcFQlUQBg+acy72DayfjlcFU4cAw p9kY5KcxkPbwIqO0QCU/ljiKlh5veDqYBDq2fdDd5u8mMvBWM0/VbhrSuLPzqPOR7VpZTlV4+yEMf ttfcYf5b5eSRuz9zRKvKzc1IkABrGxS1/c4SElxA6lmLNKM05m6Msu/qXHcYdXg9uOU/jF/GIRq4w hPgY6Xfg==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fQgql-0001TH-LS; Wed, 06 Jun 2018 22:24:15 +0000 Subject: Re: [RFC 0/1] mconf: Emacs-like isearch To: Dirk Gouders , Masahiro Yamada , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180606215616.12817-1-dirk@gouders.net> From: Randy Dunlap Message-ID: Date: Wed, 6 Jun 2018 15:24:06 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180606215616.12817-1-dirk@gouders.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/06/2018 02:56 PM, Dirk Gouders wrote: > 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 Not being an emacs user, what is the "de" for above? > 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. Hm, it seems to take 2 entries of Ctrl-s to begin the search?? No, it takes 2 entries of Ctrl-s to display the "isearch:" prompt, but entering one Ctrl-s + a string will display it also. Anyway, I am having trouble getting the USB drivers example to work. > 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(-) > thanks, -- ~Randy