From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12929 invoked from network); 19 Aug 2022 01:37:43 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 19 Aug 2022 01:37:43 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1660873063; b=mMaGij0WcCuKmv0x0GI71CRshUzn/+F0aYWR+939u0z8XZ4WllaLnDJzHUcBLrBHYaMvK9DaYz GUBvDJ/msrAwwthydIhbCKYP33O5xFV0buN+hrLUyf8hSGGZe5MzQABFXVTUeIaQ98WUbU/tir LDOFdbZnRxcrYbYF5l22TFoZo4H+X8RQNV6sz+LSRa/klAqq0GUmn+ifCByqpLCjdbhHUP6R/q aXpfqlj8X1iSP8hvAAhwegps2ApSbw7+iC4lc+mOWZnmHZNofTyNye0RtUQLuDsHt6QfvESdcJ eJOmQGh74xe9gTOhBFvwQFrbveiisW4rmYfyjN6lx2yzsQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ua1-f51.google.com) smtp.remote-ip=209.85.222.51; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1660873063; bh=+XKyHrfxxjR8eTzXkM7vZzSBJ+1qWl79G1HhjgJ/ZtE=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=dP0ugcz5vvv6gyWm5L1tvaHv5pYhmApRe2W0JNlgwa32oVe11a77eKxaIk6HOmjPrTufbRtsw1 xp9nsaTmpM9LR3g3zfzVGsAQSrn4HD2CLWpa2T8ymPjiUk+2FqhMqGxsCF6HFVs3aR/U6veNIo E6+kR0k0Zsysag8FGytO1EqiHI5F5lutOR/pbq9OFdhcCZ7g680ihbhKEVlVpFVlTDrX1xcYbA j2rHW41BmMzmdIWHMmqilEEjKu9vWLoCrV9VvHgf3qfhIt+lneDrft9eeqVecMRQ0ggKFOPieB +2bnGd9fOhc//aBvZYQIOXY4FimfRS2TTnQ5F+Gk98Oorw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=zywmtIQTXxlMbEinHF4Y9Y5nBvhJWRDoN1TaC7oNbWQ=; b=KfCS9ZBNO9K9W4cO3kwT9mh7Zg YDSmZmc2kN/wKysuyyVspMHXa3ua6yRV3KH7oGJsS943FL8XtIpndaRtmFenV4EgMVEWfUxkpTJJX niCKiWWGqCtfqoFgr3OpZTy+aosu3M4W4LdfBXMx2teh70Rn26TpXEr7aqvxSYRub2B5zsNR/kmzX 0MqYn7KHvhn3XT3WEtUpvxwlY9ke3GZXiTgDCrxyp6tzyACyPhJoHh1StC7Yc3vRP7eO7CaJIoJG3 JkiZOIxVX1CDFHbZbwb/h8UvNyFML3cKINE7B3NKX7OX2oV1XQa6RNARlEyGJ0eMk5SiZ0ilJ2ZkM N2wkrPqA==; Received: from authenticated user by zero.zsh.org with local id 1oOqxC-0006bc-8h; Fri, 19 Aug 2022 01:37:42 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ua1-f51.google.com) smtp.remote-ip=209.85.222.51; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-ua1-f51.google.com ([209.85.222.51]:41613) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oOqwU-0005wx-Sv; Fri, 19 Aug 2022 01:36:59 +0000 Received: by mail-ua1-f51.google.com with SMTP id cd25so1304927uab.8 for ; Thu, 18 Aug 2022 18:36:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=zywmtIQTXxlMbEinHF4Y9Y5nBvhJWRDoN1TaC7oNbWQ=; b=eRJYReuOUJ8lVj2U0MeihkB+7FPBR3lNMrPKucWSi2w0U1ej0EXeMvPY016UPVsFWq fq0ghS2drXjSyMRDuNrXKn7YwSn2kiz+WaP1C4RT/fZdoD0vpoDIXWdfEU3rpgGxrpMF R8O56RSk0MKt1U/x6JrvFIDBKYOigo3Bg5HynUDcksOMVrvcCu8rTDAH6rWfImDQOYID RQ2z8x24d6hFNzqn35tICwcoM4glwnKle7EPI9glqg8SFvSH5R+lHQ1jWfuhqHEnOpxe zypUXC1NBMQK+vKaWdBnJeJC+u0H13NZkEShrKZ2Xn6dLY+0S5RsUj/Wcu7bg7BKz5zu 8rnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=zywmtIQTXxlMbEinHF4Y9Y5nBvhJWRDoN1TaC7oNbWQ=; b=h8zhr7WyrLUTa04y4Ap69ysjcceHQLvpCqK3tV6ra0t+SYnt8+c+2DE9K+4ceCKcrz S/3jduooVRbBrO9WHvQGMWlJ5jL1I7A34AX5c8IZEAzyaK4Doz9UyVSMPxUYxPAI3KeC fMFeMqqmbwEJLrFaVdxuXamuRxneuzy0WBHYctGfdJ5lWYShb0ab4gxe/64WJgTANim6 dptnKyQ0H+fkKbfZ9pvVRGpo1DHlqlb3IFNl2GjmBoS5cviO0R/14SdYEnZnH+0bPDdp NYLqSTq+3EuDeCHvDOj+/xWjKHQJjVjJmVGfclOuG/B86+Bsn7SdBYX3oVUo+VxYTlwo NeVQ== X-Gm-Message-State: ACgBeo3kCVvcO2G+ITdOm4y2rfjzcNLsbGq8ys5pz0chEgXHS6TTDZI7 I/jDbVmkQ6uYKjN3Wuu77EX/RqPtuUQ6WT94mOo= X-Google-Smtp-Source: AA6agR5RACNgTbDTVYQdQN2vH5zPYCm46PMpyM3VXILrudaOXfNBf2wMGdGL8Xo49q9lx+kfPmmidMz96FnPwTED1cw= X-Received: by 2002:ab0:2102:0:b0:382:2773:aa7f with SMTP id d2-20020ab02102000000b003822773aa7fmr2220418ual.31.1660873017545; Thu, 18 Aug 2022 18:36:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Zach Riggle Date: Thu, 18 Aug 2022 18:36:46 -0700 Message-ID: Subject: Re: Enhanced history-incremental-search To: Bart Schaefer Cc: dominik.vogt@gmx.de, Zsh Users Content-Type: multipart/alternative; boundary="0000000000003a5add05e68e222b" X-Seq: 27967 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: --0000000000003a5add05e68e222b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It's a lot of comments, the amount of code isn't actually too much! On Wed, Aug 17, 2022 at 3:54 PM Bart Schaefer wrote: > On Wed, Aug 17, 2022 at 3:00 PM Zach Riggle wrote: > > > > I'm a big fan of history-substring-search, which lets you type any > portion of a command and just hit =E2=86=91 and scroll through the matche= s. No > need for Ctrl+R keyboard combo, just arrow keys. > > > > https://github.com/zsh-users/zsh-history-substring-search > > Wow, what a lot of code. I think enabling isearch highlighting and > using my widget (duplicated to be able to search forward as well) > would cover 80% of this. A couple of checks for whether to stick a ^ > or a * at the front of the search pattern would cover another 10%. > --0000000000003a5add05e68e222b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It's a lot of comments, the amount of code isn't a= ctually too much!

On Wed, Aug 17, 2022 at 3:54 PM Bart Schaefer <schaefer@brasslantern.com> wro= te:
On Wed, Aug = 17, 2022 at 3:00 PM Zach Riggle <zachriggle@gmail.com> wrote:
>
> I'm a big fan of history-substring-search, which lets you type any= portion of a command and just hit =E2=86=91 and scroll through the matches= .=C2=A0 No need for Ctrl+R keyboard combo, just arrow keys.
>
> https://github.com/zsh-users/zsh-histo= ry-substring-search

Wow, what a lot of code.=C2=A0 I think enabling isearch highlighting and using my widget (duplicated to be able to search forward as well)
would cover 80% of this.=C2=A0 A couple of checks for whether to stick a ^<= br> or a * at the front of the search pattern would cover another 10%.
--0000000000003a5add05e68e222b--