Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1449905imm; Wed, 6 Jun 2018 16:36:32 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK7uza9e1acx8QxC0VUpYcQGkcePMEB8bUvoBwjHticjKJyNkVU9DGzkc9G831VW1dSzz/O X-Received: by 2002:a17:902:6546:: with SMTP id d6-v6mr5211433pln.196.1528328192074; Wed, 06 Jun 2018 16:36:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528328192; cv=none; d=google.com; s=arc-20160816; b=fSZoYtaLSNm77shU/k2u3yFPxqzTt96dg+HFTGWh9ZvjVOWpHFP4XzlOwnT9ZUazAU 93N1s1n+4HAhGPFwrd5JgYpLi1DFSLI8JqGPcNM2IXt6txY3YE2v77ehA2aPHkJ+PvbX 1XxaVyxom4APb0eZ9qCLJfSz61mTrvH7TqwFAFxNoUWl/HfN3+ojycBAaDDyU1kOL9AR ahLny99t/whgHZhseGDOXiwRXSkTN7ibCW8nxiVMu79vgOunsR+4rXSvp2AyYHBiykDk bvfQRdhC4YBa8efAKVXNwHKdk3x2SgOGmyKzTo0H7ASyMddIU7+A+c+nJeMP7WrwON7m z04w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=LVcMjLW0ET24TUBYEzWTisOKhGJa2yd0aKRSvK/P3/c=; b=U7obhKqsCUa09uUshdST5J1sYcqraCv6fSL/LvrlFOdR4xEK7/r67ygWhS/MVd5wh/ uh9nnQgbFBeBw9hVAKYZ8OEW/XENlg20xM61S/gVoQs5RPEZjJd6StER9bdGsqJtIvud PRpIPDkV+9tBvknDObf3lIclRKgWAdGyckEM/nWDJX0kWCeGhMAibCzvO9xxFRRGO73q RJfRtjMaJXInfIAxQIN6ETlyOMpHaWwtlJ5XlhBWmahSLbT15y106DDSwfOBtWUeBnbL IIUoxaXmB81oELyIVLOzMs6mO2hd0XWLt/whb5qD+lH7QkJuBDZ+wISy6lcLzq/sjP/R rnWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=xebEWdXM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1-v6si9576444pfk.56.2018.06.06.16.36.16; Wed, 06 Jun 2018 16:36:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=xebEWdXM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752954AbeFFXbw (ORCPT + 99 others); Wed, 6 Jun 2018 19:31:52 -0400 Received: from merlin.infradead.org ([205.233.59.134]:38694 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752137AbeFFXbv (ORCPT ); Wed, 6 Jun 2018 19:31:51 -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:Cc:To:Subject:Sender :Reply-To: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=LVcMjLW0ET24TUBYEzWTisOKhGJa2yd0aKRSvK/P3/c=; b=xebEWdXMa7tSKfBhfRkzQ5SAqT Xoo9VpVoHxXkJ4mMIupGDQmQj08sNX/IpNLcdPZiDMxGqr/PsTuuYqRN8QDSPzS9XMEc2BV+cnocD bBaOpC7bUFNBl8T9T2uWf+JnScFzaDcg3ro3U2K1QMQuTBhSLVbk01mw8IlkhbCgw4Y0Mma+sBVfD SyjW57/5iEgDqGTgkpVTLfV8foPz/4EET8brSZrTr14/hwvLyBNb3dbpSARzRAzLnf52pfI7Cnrot +nQHeoyZ6G1g1Gc0SGRfPFjHSadx6InqKkAElQ/39QBiBTNiPLSujXlpmRRLuCL3asV+6xZZQnAwt AscYMEtA==; 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 1fQhu6-0001g4-Rz; Wed, 06 Jun 2018 23:31:49 +0000 Subject: Re: [RFC 0/1] mconf: Emacs-like isearch To: Dirk Gouders Cc: 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 16:31:44 -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: 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 03:32 PM, Dirk Gouders wrote: > Randy Dunlap writes: > >> 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? > > "de" (with my .config) causes a match for "Device Drivers" -- > no other menu entry matching the string "de" is befor that entry. > Device Drivers is the first match for me also. To get to the USB drivers, I have to enter: CTRL-s de ENTER ENTER CTRL-s 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. >> >> 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. > > Yes, I should have stated that this example explains what _I_ have to do to > navigate to the USB device drivers. Probably, "de" in your case matches > some other menu entry and the navigation requires more or other input. > > I'm sorry for causing confusion. No problem. Thanks. > Dirk > >>> 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