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 24449 invoked from network); 21 Feb 2022 21:55:41 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Feb 2022 21:55:41 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1645480541; b=seO9jVVXUjRrmS0ZylfzcWYqBJtaPJDSDxNf83JkRMi/awKoCeORMVjCZtRQLQKluPyhqOthfw AeS/Ih5wMUc6A2lVVVNF+gtJnLxBc4f097EqmndLO/in2uyf/IhuhoxaQTI+t4UsxlJyIh+apE xdArwo0bkAkSWwl3MtN/abPTMT/tEs1QsprFuQihc7rxa7Abd/dSNkgsSTz6FRhd31K+RIqdGw H8NVhPP3Dj1Ri+gBX1mAw0P6PHLoSt7OU+yK5Rauao7tKmq80Txk4YvA3ly+fK8QdKTfKGoiro Yn+6tPJYD1rCiobkgvsLsIXbuovSksArvF0BJJst2n6ZdQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-io1-f53.google.com) smtp.remote-ip=209.85.166.53; 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=1645480541; bh=7Nt9zsg31PD1ARHnHvOXkCozcRmIsmfChFWxQ21b/HM=; 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=Pb5itVRL8UykCqassqN13RRIvyEkmqyoevRLp9H3Q/lmkB9nwT2Xbr+u1x5RPuaQbflhMLLw9J GfX1fYV6p+Jq6H3iGocjKmvJ0xcDUlIUCNklYXb0AJHRFYo9xrOeWgQAR4QWcF8cj6VH4ANB+P tyo+DLqMnF2OM67k7mgVrP83PUg4F1OoeoZ6XTWwyC2Y/G9sztdhvk8Y87DjOELniUYjSD30Ft Cxjy9fAaweuFz6WLP5U8wEHek90lRpAHgXlUV5vaWFdiTKCLGFKk0XDqZzuW7Dw4hlM/wwz1k9 cGPZl1LsBXSrpksoB8PvsQAJOSw7nAm8cf4lxB50nhhKtA==; 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=lZL73ZOoxQA6exBWiwG8BlaGpRBLjU4a7/1yex1v3Pw=; b=Wx9HfbL7wvFsWPZ6paWRQWxJ3Q 6ONvcR0p1JxrBdbWcQp2q5a0OJWjzkZ3xMZH8UiXCPTonRxfo5mdJWx/nodvlnoyZzwHghkrNIBU5 hpxIWn+CcqWcOWzzaydIDoy759dESA/r0tAvHS3GOWTC71sa84yI3fOBaJCrYp3Rj16fM3c4fuDG6 R9iYrGf0yA1idTIqelZQurk+v3J7kWaCb1bzR4lPX11PQZC7CopTFANQIdhnhsZLFe0CNGcrZRLiF 3BxOFJYFAB1GuGHQpffvlqWghDnm2GUr5pb8WkI05SasFTUFNoIpYpqawO6RZk1XUfCttRRWUf1lD 2QmGkgCA==; Received: from authenticated user by zero.zsh.org with local id 1nMGej-000CCS-3Y; Mon, 21 Feb 2022 21:55:41 +0000 Authentication-Results: zsh.org; iprev=pass (mail-io1-f53.google.com) smtp.remote-ip=209.85.166.53; 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-f53.google.com ([209.85.166.53]:34450) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1nMGdt-000BQx-3L; Mon, 21 Feb 2022 21:54:49 +0000 Received: by mail-io1-f53.google.com with SMTP id f14so9961889ioz.1 for ; Mon, 21 Feb 2022 13:54:48 -0800 (PST) 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=lZL73ZOoxQA6exBWiwG8BlaGpRBLjU4a7/1yex1v3Pw=; b=Y+g0GdnsHgyCxOwms2rMRnQwh0ypLJKxS7T+d1IwsvQgZsmIWLPo3VvrvssImIn7bE 3GA+uk95Ww7HaABdF7cupMnuk8/1rAE5qnCiV190C0O9hyg+0BUStVY4Kntc8p6FoqQ8 Whwk5RDEamDsXd3wczb87L6bjAU22Y333ijZs4YavTeNOyCmTv0N5MVXdQYDoIsGCCpC TD5pxhKogXs+lT8KIku+I9NJMj+eHDSRuEdOLhlIK10XYRlILkc5X97tf9zSrtqkq+qX bUZH441FYKz2t0HU7x9ryIM7ADC3iNFAVgLrxHoTD3wwMbXJvoSTcazfFrFb8wH7/Y3d tZUg== 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=lZL73ZOoxQA6exBWiwG8BlaGpRBLjU4a7/1yex1v3Pw=; b=dq1TnBQEhOETtn8MGTSNPMXqTWppXXBJxKy+z9kFENoTMQJn1Hp9YhO57ZBX0BSwgT zba0vtp65wDOgY3oIp4p3AEuWiDyaIYW9yNvx4eBd0kUSy8FpE89GHUAEHto7TNxzvoo yXo8J2sgjpGYPmcWEe29mUcJTQX/9UliUfuz3WdSNGuZ2jH83GIGaXoaIfSMVsAsd26Y x9jyvCFlks/uRYjgkKj1jw55mf9WtO5Z0Vvb06NkqV0XGSxunURBXM0F+uHaV749hrrR gDMTdw1/ig6f74nGXo0115gyof5ZRs8lET/ov2wPSg8Qx+VwTQdgRKYEOyrauHAThDxX AG9w== X-Gm-Message-State: AOAM530bkUhJPrK3ZhYmSzKI26j6KRNzAam2Aje2bSTkryc+pL22svM2 1L+aAfSQM2JFCeN9hy32HjqOUAXOR5QSbUCZMcw= X-Google-Smtp-Source: ABdhPJyfMnTwYD5RO0XVZRakom6ibaxymJsG2o+acb5reAnuYASmuf01GarV3iA/XnkFC1Ql3LQ7FFZyt6iZfDe1+PM= X-Received: by 2002:a05:6602:15cf:b0:614:52d4:952 with SMTP id f15-20020a05660215cf00b0061452d40952mr16835391iow.185.1645480487764; Mon, 21 Feb 2022 13:54:47 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Pier Paolo Grassi Date: Mon, 21 Feb 2022 22:55:27 +0100 Message-ID: Subject: Re: completion inside vared To: Bart Schaefer Cc: Zsh-Users List Content-Type: multipart/alternative; boundary="000000000000f549a105d88e47d4" X-Seq: 27530 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: --000000000000f549a105d88e47d4 Content-Type: text/plain; charset="UTF-8" >Which history is getting lost? The global shell history i.e. $HISTFILE? no, before invoking vared I do fc -p -a $file 200 200 to have an history specific for the command I just found out that replacing my previous trap with trap 'return 1' INT the history file is preserved after a ctrl-c. If I instead do ctrl-g (send-break) the history file gets "cleaned" again by cleaned I mean not really empty, but a file that contains just the first row of the history, for example if the history file contained: : 1645479991:0;./Desktop/ : 1645480234:0;./Mail/ : 1645480247:0;./nltk_data/ and I enter vared, than send ctrl-g, the file contains then only : 1645479991:0;./Desktop/ Is it possible to catch send-break? is it implemented through a trappable signal? thanks Pier Paolo Grassi Il giorno lun 21 feb 2022 alle ore 20:27 Bart Schaefer < schaefer@brasslantern.com> ha scritto: > On Sat, Feb 19, 2022 at 9:28 AM Pier Paolo Grassi > wrote: > > > > yes that worked (apart from a space to be added between [[and $ > funcstack), thanks. > > Something to do with gmail line wrapping/unwrapping, sorry. > > > Is there something I can do to exit from vared with a key combination > (ctrl-d only works if the line is empty) without losing the history? > > Which history is getting lost? The global shell history i.e. $HISTFILE? > > Have you tried exiting vared with ctrl-g ? Does that have the same > problem? > --000000000000f549a105d88e47d4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
>Which history is getting lost?=C2=A0 The global shell = history i.e. $HISTFILE?
no, before invoking vared I do

fc -p= -a $file 200 200

to have an history specific = for the command

I just found out that replacing my= previous trap with
trap 'return 1' INT
the history file is preserved after a ctrl-c.
If I in= stead do ctrl-g (send-break) the history file gets "cleaned" agai= n
by cleaned I mean not really empty, but a file that contains ju= st the first row of the history, for example
if the history file = contained:

: 1645479991:0;./Desktop/
: 16454802= 34:0;./Mail/
: 1645480247:0;./nltk_data/

an= d I enter vared, than send ctrl-g, the file contains then only=C2=A0
<= div>
: 1645479991:0;./Desktop/

I= s it possible to catch=C2=A0send-break? is it implemented=C2=A0through a tr= appable signal?

thanks

Pier Paolo Grassi


Il g= iorno lun 21 feb 2022 alle ore 20:27 Bart Schaefer <schaefer@brasslantern.com> ha scritto:
<= /div>
On Sat, Feb 19, 2022= at 9:28 AM Pier Paolo Grassi <pierpaolog@gmail.com> wrote:
>
> yes that worked (apart from a space to be added between [[and $ funcst= ack), thanks.

Something to do with gmail line wrapping/unwrapping, sorry.

> Is there something I can do to exit from vared with a key combination = (ctrl-d only works if the line is empty) without losing the history?

Which history is getting lost?=C2=A0 The global shell history i.e. $HISTFIL= E?

Have you tried exiting vared with ctrl-g ?=C2=A0 Does that have the same pr= oblem?
--000000000000f549a105d88e47d4--