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 17854 invoked from network); 13 Jun 2022 10:35:11 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Jun 2022 10:35:11 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1655116511; b=USlwFs9pDD4cyz3ZvQ5/dbZeTcHZkRZ5icPsHyIUSVdYN79G5wx10lrCLXr4sI9iZVGFGRYG5/ Wmtp9nlWjjAK/ISTCxyXnaxMekwvwOxLucAlIO6I9m/9ih6c+HxtK+OKHk9b1D4T0B+CAnLzr5 BBEuajJytXohKYhgCfAWEN8khvBpO+Xxb1EGjUI/vOllOyjylj1wNRj/+r+hOfCRJVLhAJ2ej8 5o532JbEGNK8BTNoSQDcK/GA/ZOwlfGmzEHMCfwDkhnce3CXd0w7i//tR53VxoxzL9UUrSJYyN hEjY5X5uu23BJtr0eOiS5QSQQten68KNNpwBf6Q79W89Hg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-io1-f42.google.com) smtp.remote-ip=209.85.166.42; 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=1655116511; bh=2Q36LV0kbdipj2/pC4Id5Jj4ozzxqq+YL4fP7mbbov8=; 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=G2X3lp3quIkBj3SKUllRjHg/dAL3dGfatcxg35IIQS1VFytTXYozxElthPYGcDketJIaul+z2f v3Bxm9EExmjLWbMMcSTLPsJ2u8i9Dtj6R6MrDopQ7n0oDDo/3GCxhacndGEcR4Tf0gSKgjoIlT DIB56tBMddFWxhagEO15kI1455Lp2TIpvKItY5aWcKhzOcc9UTgCuQgQtCGtmk81yloUyzkV/n +5ZdjsbkO80CH+q5+rJ+BTtwRdkOqywAVt5CF0bu4ryCIEI8M+jh9fgPcvdqq4jPP2afb436lX /6R6qNy7KfauGJl2plLM0oPeQo8Dxpa75Ax8aMxG+kr09g==; 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=2Q36LV0kbdipj2/pC4Id5Jj4ozzxqq+YL4fP7mbbov8=; b=SPHFZ7Q+cvoBXKTsAVKVWlQZBT chJNFsm2Q9/bz8/s0o67w7pmxQ6LwcVEPBnIsH4JIcFwPbpaIOWt9gOxPXk3HHwT0Br2WS/QADpWk 0Qnxtzb47Awq7vIR1XEAarGSHaBhdgeyOqxcGuUkM+eMUrrlmllrvUKy/yQQHuT63ulwAlsF6ZOuG 0Ovl0CvoC8LERmA62fwmFYGYIfXAxRtxJVj/d6TQC+KWf2NZ2ya3yr6kz1A8/pzm5U83XbscA0EHe RsGOpjBrF3dQ7XieB01IHpkk1wY49XDUZwNbzfI1G5orR9kykh70X0ZXPZnmAdMQoBR3TM5sNk88G 2PLvBNDw==; Received: from authenticated user by zero.zsh.org with local id 1o0hPa-000It7-25; Mon, 13 Jun 2022 10:35:10 +0000 Authentication-Results: zsh.org; iprev=pass (mail-io1-f42.google.com) smtp.remote-ip=209.85.166.42; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-io1-f42.google.com ([209.85.166.42]:47034) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1o0hOX-000IB1-Rd; Mon, 13 Jun 2022 10:34:07 +0000 Received: by mail-io1-f42.google.com with SMTP id s23so5564755iog.13 for ; Mon, 13 Jun 2022 03:34:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2Q36LV0kbdipj2/pC4Id5Jj4ozzxqq+YL4fP7mbbov8=; b=J8ZjNTG6IKmUPXXLPEmoI/5+U65RKXabdrCu8uDNC4h7ej5mEKTmIh+7BQYNJWtpde EW0EINxclXNWrWv1CpTiiz2xoNtHDDdQ8ACnSoL5SBOUYtzU1Pe55KsG1VKwiv8ulczG VdG096qigULJH/sl0l8AjD9/iYiQjM6TJXOpAjMMHYdHyAti46xTWLWbxY3HnSwBlIrc tKTubQQmEIYoJFtFWhVYR31qxM3ii9SU08/s6taTIrKkbzbnkmkR38CRsfTYAZGSzujz SuRRP0fjr9uictxJG+q1WcFUj7vGShns9OImI/lw5/hIfeXnHAfNrVAJWTLRxITgZ9Pw w8Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2Q36LV0kbdipj2/pC4Id5Jj4ozzxqq+YL4fP7mbbov8=; b=sXULGCRMyPpBP1SGIzqkjizxKEvmflXMuu6ENYKNPw56t3LDCCC7nCQc4JVECcr6L5 beiwMXR/s+Pmo86hSU+OpP/2eeDHunJLvUaBNkMlc0U9LBJK7jp9nvIaADZDxj18ww4j hEASs7QhLXVTaRTAG7jOSE0pHWQCfFm9+YgjxBfDsOOMa9ErgtJVi0EzIXHLTarVtAF+ sO4stgJZbfRbdb8MuvJ++AxDLcM8HGQGX5QbM0ffRALHIiNElM8JTAJHcPWjlI1Znk94 mYI7EFCI3lxow9Ax+V/6fDHLkavljk89f2+IoMoULRXTnWZxP2IgACIexM9NHqNwBxga WIaQ== X-Gm-Message-State: AOAM533iPGuY5uSUfKso1lhdOvxSZMUWt8GuyEAdqOmGM7I9wpoUqrJS 08ERftUv1qga5rw/LBQtwDhAHuC1tG3J1pUhiIDCe8yC X-Google-Smtp-Source: ABdhPJzX1I15UmHX4Rd7fXq3QbrxJHM6zxjVFKTOJV9RobyzIuPH93i10VIJzT8J1E2YIw/D3x/rocZtPTyUFdNgpxA= X-Received: by 2002:a05:6638:4889:b0:331:b103:a74c with SMTP id ct9-20020a056638488900b00331b103a74cmr20969635jab.66.1655116444232; Mon, 13 Jun 2022 03:34:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pier Paolo Grassi Date: Mon, 13 Jun 2022 12:33:27 +0200 Message-ID: Subject: Re: How to see history 'expression' in history rather than the expansion? To: Bart Schaefer Cc: Zsh-Users List Content-Type: multipart/alternative; boundary="000000000000b8720b05e151d3f9" X-Seq: 27845 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: --000000000000b8720b05e151d3f9 Content-Type: text/plain; charset="UTF-8" Hi Bart, can you elaborate on this? when/why does this happen? I also have that binding and never caused problems to me (or maybe it did and I didn't realize/correlated), but of course I prefer to err on the cautious side. Pier Paolo Grassi Il giorno dom 12 giu 2022 alle ore 18:17 Bart Schaefer < schaefer@brasslantern.com> ha scritto: > On Sun, Jun 12, 2022 at 6:17 AM zzapper wrote: > > > > ###### I've just remembered/realised that the following widget solves > > that. ##### > > > > ###### But will still post this just to get any possible further advice > > ##### > > > > bindkey "^h" commit-to-history # ctrl-h > > My only further advice would be that ctrl-h may be a somewhat > dangerous binding for this, as you may find yourself in a situation > where backspace and/or delete keys send ctrl-h > > --000000000000b8720b05e151d3f9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Bart, can you elaborate on this? when/why does this hap= pen? I also have that binding and never caused problems to me (or maybe it = did and I didn't realize/correlated), but of course I prefer to err on = the cautious side.

Pier Paolo Grassi


Il giorno dom 12 giu 2022 alle ore 18:17= Bart Schaefer <schaefer@br= asslantern.com> ha scritto:
On Sun, Jun 12, 2022 at 6:17 AM zzapper <zsh@rayninfo.co.uk> wrot= e:
>
> ###### I've just remembered/realised that the following widget sol= ves
> that. #####
>
> ###### But will still post this just to get any possible further advic= e
> #####
>
> bindkey "^h" commit-to-history # ctrl-h

My only further advice would be that ctrl-h may be a somewhat
dangerous binding for this, as you may find yourself in a situation
where backspace and/or delete keys send ctrl-h

--000000000000b8720b05e151d3f9--