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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18632 invoked from network); 6 Feb 2021 22:09:14 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 6 Feb 2021 22:09:14 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1612649354; b=lNXZ9qTTdZJWWnMvLzivfyI/OiFn4OFK5Gb+heH21FwpkcwqZW07jCFAQOliS73o5tBckvm2fS BqRgfoEf9aHxuvEjDibqGygGL0mFo1JyQ5bNRS8fsXUp8Mb9OWmWJRLvLfOZdSQEgWyZUkyhRW oa8OSJOw6NzEFSIIbnPQMHPZOUBARrDmU6bfHtMPO8++z+Iufe4dHoqSd3cZ2+Pzd+n9m8Xwnd f9Lu5pDMdMKtM/wLTKtz7xoumnXdwGh23ZeOfSkjBwl6wfVaDqS1Y2cLPUlD8JE0vFPsVVFPHx Y8K9VE7KJtnnyLl0gV+LxNXLOtDVgv98RLtJL70cvsT3kA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oi1-f179.google.com) smtp.remote-ip=209.85.167.179; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1612649354; bh=TItlzex1QMzTlBGp/H0dv/dYSKqXeZULql7wD2ODt0w=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=pdrkznfOvVo1aRHLddSnp1sAnG7lFygwT30wGBXTQDY3blgkcAaqBqv+S49ib5kWQEB4CMBk3o vMvPFfNp9r+yLttVj80v/d9BkQyN7XsR0Nf5HQgvz0yQvjpbFci1P93iFfTwjJwquR6Brxx8d9 VY5hVcf1Qc2sOeI/biPHUx49+OHsnosxZotLqCKPpUUtpoHA/hdx/XpXBJfzLQNev95oXvxaVJ jxwkZttX353T4ApcqHgG16zJaIi9M/DF0chTOFh5T/T2F6DWTHneUkWzTZ5lgyLws3wZ9kDomH geaKCxlKrTgkyMb0uNmm+R5EqXKis8NlZPqyrqHJf+nO4g==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=rQ0o+TKH1zOjMKXsnug4FC7R3K8vH2QBLXHYPVUWByQ=; b=fMPQ2aXsHSU1iQZS7awUcQkGUm eXfl4flwfmBPAsuB9oNanh/2K0uDjlzW+HmJGV0IV+dSbWRaVj5EjDMPSAS6U+l3YQ5ztdnHZi3H6 cGcvq7FOTCFpoeEC3QbpwYYuhNVFW3EyRui0fLgK1W7fWn37uU9xLbETRZyclmB7t8db9rXgzjAy6 B9apgGLztwLuU59CSUZaJ1IyNsNDTaLtgdPvRD/UL8Wda55atHU92kwNc6vSKxbPfcV53WFlTrQhY YhOSTz4Xl5hLfncUz68+1Q/AzOBX3pkZSR9Yj2wDsNNLEhNVWWKXyOOocX06e1heSIBXSxc2U2WV+ cf9QzP0w==; Received: from authenticated user by zero.zsh.org with local id 1l8VlS-0000rq-31; Sat, 06 Feb 2021 22:09:14 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oi1-f179.google.com) smtp.remote-ip=209.85.167.179; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-oi1-f179.google.com ([209.85.167.179]:37438) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1l8Vkw-0000VN-OI; Sat, 06 Feb 2021 22:08:43 +0000 Received: by mail-oi1-f179.google.com with SMTP id y199so9597580oia.4 for ; Sat, 06 Feb 2021 14:08:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=rQ0o+TKH1zOjMKXsnug4FC7R3K8vH2QBLXHYPVUWByQ=; b=jSV2cCtvTM4gZiiYEq/dexBMZtZac2huO2FmH1V5fAmj/QxB4fFpLkBJ2UeJP6XCma ToA67boWinY/FUhvVLhLTRsCOqMsK33UCZp+Ss492lLq9yovxG7Fgq5ERnqgNYhYEDsS /Kp2Own6nuDispacz6/KHZUDQcKrNFU77da0xDEuUHM/3Vx2ANffVWFxIV/HW/iXowds a26KbzmXupUu1GpHHKsLmgKNXo3J2TWXRb4hBjyaXUtAUhDfNFXeMFvICyr6JPiyIcw3 FsxG2yB53CAM5rJs1Rjah7oItLe1dlb9yvXJEI19p3n8oAL7YMra4TeFBov5KintlEYv QolQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=rQ0o+TKH1zOjMKXsnug4FC7R3K8vH2QBLXHYPVUWByQ=; b=N6G19gMSS/RJAtc38wurBwAro0ikM6XhHkr4Rad9WqnEzVbquInXFXS7Kw6WNFZXzT wjQKkd5HpN70ep0rKyBhDNgVGi3QNAUr9QZ4ffoFa0VDVRMBgY4J2lJKiQ+Ui6ECPaUR TKj2wgC+2MGgcf3xUueGGDxCfcBhO0laCRie0KFPti88V23VA2mYgs7rB/Ov4tgiVGfv IhW+cSXEf+FPrURc4vO4EE9prU0lnym/1WLStDdGbVdbTS9YaE0iR0nJ4Vql2Fz3YsVu jvwRU7KgDPxDfA3kIY0ueNXXz5WRJ7mNRnThmLN4WwepPvM/EtMQkDgR9YIhCz+9uQGE iEBw== X-Gm-Message-State: AOAM53140zC9dN4WpamrtxhzANsNNSv3WwfFUSWUVYhioZpiM2HYygpt 9MSbqCJiOld9COkePXeiXqXQrL7SvhsTLDwpuSfhmA== X-Google-Smtp-Source: ABdhPJzMpk0lXMaCWIiQvoXWpVGw7kqFb6Av6tDl/YqnVCI8cq5wdv/hM17apHfV/3sMN3/F4j1y5AqclLkQrL8zqUc= X-Received: by 2002:aca:808:: with SMTP id 8mr6846950oii.84.1612649321687; Sat, 06 Feb 2021 14:08:41 -0800 (PST) MIME-Version: 1.0 References: <453532ec-a8c6-a3b6-c44d-9107e98250ca@eastlink.ca> <52C36B95-58AC-434A-93BF-88E77464C04B@larryv.me> In-Reply-To: From: Bart Schaefer Date: Sat, 6 Feb 2021 14:08:30 -0800 Message-ID: Subject: Re: command recall To: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= Cc: Ray Andrews , Zsh Users Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 26470 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: Archived-At: On Sat, Feb 6, 2021 at 9:22 AM Lawrence Vel=C3=A1zquez wrote= : > > > On Feb 6, 2021, at 12:10 PM, Lawrence Vel=C3=A1zquez wro= te: > > > >> On Feb 6, 2021, at 11:36 AM, Ray Andrews wrot= e: > >> > >> ... set and my up arrow is: > >> bindkey "\e[A" history-beginning-search-backward > > I suppose you could write your own widget that updates the internal > history first. Someone else would have to provide guidance on that. The issue here is that when sitting at a prompt, zsh is (usually) doing literally nothing. It can't discover that the history file has changed until you unblock it by doing something, and it doesn't update the shared history until the current local history is ready to be written. You might be able to write a zle -F handler that interrupts ZLE if the history file changes, causing the changed lines to be read (and a new prompt printed). If that works, the next issue would be preventing terminal A from scrolling every time you do something in terminal B.