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,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9569 invoked from network); 9 Apr 2021 20:07:35 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 Apr 2021 20:07:35 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1617998855; b=ofqwKUcicVKweyXiM9DB9y+Zf6mWqCtuepduu2lEVXYgPS2axUXfiwRl4C5rVdkp8jqtZYq3RR y/bHZ9MAiDuar/BGY7Ucocl7WosONsvXv1EpttEf2oTbdcynxnq8NR/jKAqD0lyK+JROITnJhu wH3GGzmqf96o8bHjaPHTyHaEedY1PCGQzSEV2QP8BpvfCSNSHt/+cugKi/YQVanU/Ll8gfqoTM QXl12cioPbaUtaaB2SnZ3SXyEC87Bt7wDo51SVXnKKFRa/g8B6MMiLVP459kDxTDjHqi//BcSg lbusspOIDpRlaaaZjDJUOj7f9JWAhg/xmwRaj/omxU/kfA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f176.google.com) smtp.remote-ip=209.85.208.176; dkim=pass header.d=gmail.com header.s=20161025 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-20200801; t=1617998855; bh=XsSay7GpWxn0Z3Ss98DeqJMHlC2iDTo3F6nu8qe2X00=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:To:References:Message-ID:Content-Transfer-Encoding:Cc:Date: In-Reply-To:From:Subject:MIME-Version:Content-Type:DKIM-Signature: DKIM-Signature; b=PSvynvArw8yH6T28+5/Nt6BaOBZ8BR1tCJbCdKr8cpCWX0x7f5ltD8hWgVQqu7nCxo9lF7AlHv hxUSaAzxSpXdzo+nb9psq5tWdYC82N6j6fjWpTSGxT1CA7otAAhuWJZkfmvacdVLy7jhcmUZCY +UKXHhKISOikB4KkT0maSvr9ZKe1+ZTstpPa6+czJ/eTexKqhCkwjqunolhMvPM8VfmREwyWvV uuc4/+3OUFcw0hU6bz1/2BZ47ckKRADsfpdBrInFfk9d8fQu8O358XuiEgGF30r9wTBf+hIMiC Mal3QFyQVBFATKALrrFhkOIxAGLIEuRL9P4Of738/tjjNw==; 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:To:References:Message-Id: Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version: Content-Type:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=XsSay7GpWxn0Z3Ss98DeqJMHlC2iDTo3F6nu8qe2X00=; b=pRQBBjeiZtzu/vzrJzPgFKmV5A rwQcDjbLx0WYcHuPIBhkPDrZmaXTaWdSvZkZTuiTFxnJJDr4QJCPIKez4mGZ4F8oX/1CST9gKp4kj lQ/v+SV22Qjp6QJPhwQ+r+D9O6OxblgQOBIhqb2Fscc79cpP6Li7jzIxoklff8dS8NfZ8bUqtaBir yq9ww4yuGh8rUbYGVKJPpTWIB5r0B1iopWFwk9kTBiW90Yoe6o6Q9cxEIJF6XCS2UuRPcWCAyHB7R Cz7rtBwnQbO5fFPoFH6WD7i+e6zC/YyEfXuqoHGB3Wh1dRY0xVh6tgxvZeztpuSqleQu/J5bqbz6d XG5kbTcA==; Received: from authenticated user by zero.zsh.org with local id 1lUxPa-0008Gh-UB; Fri, 09 Apr 2021 20:07:26 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f176.google.com) smtp.remote-ip=209.85.208.176; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lj1-f176.google.com ([209.85.208.176]:46061) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lUxPN-00080F-B1; Fri, 09 Apr 2021 20:07:14 +0000 Received: by mail-lj1-f176.google.com with SMTP id z8so7836274ljm.12 for ; Fri, 09 Apr 2021 13:07:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=XsSay7GpWxn0Z3Ss98DeqJMHlC2iDTo3F6nu8qe2X00=; b=ppwSIc+tGQIwioXRXorx/JEum68chzCttcOAlgKiIfVaDVAuln7ZzDH0uyjfcsMx36 fIZzurb+oUcVuyqI4BwXBijGLdu05I9lTTBXA1dzi34pYT6Yg2pwVcbkYyPAZC1Zsou5 uTzYz4Vygo9fA89KsVjbyd31wzy2DmV1LVH4YnV2xotqFsLX43lK/6AjWomp6Q5JTDYA KIbNRo8P6kW4ezaAF0WfkF8eP9zd5VhEE+sMxX3yBkGsP/IRP40j9x8G+cn/1y2bETub 9awUT3uX7bryxYQUfdANz4doXrLdpVY3D45k2KrRaxD7325ti9trY6flAryhitbUlNTb XoOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=XsSay7GpWxn0Z3Ss98DeqJMHlC2iDTo3F6nu8qe2X00=; b=fZoOeHUUdVsvctv3kFjTcX4wr7WQJCyrGgY1B3n7xa7WmZI9C1igNMNGbR1Oh2kAnR Rvyp2ZNzGmwn6PG02mwm8EBtLIkw/JhAkV584H/EX5Y161gjKtilbayd/S4J4ruk5isU V+0ALCYVTtlLRBeb8HYVXEREpnEEpPZ4agbWTXoJnPNW6mfH2gD6vR0LwpCojclUpYcT AU7dGOqowmzr981Q4DU0RQtBgtEnCm6sLju0xt7VJzEhtgSQd+auALMgicXw4AcyYhHL bcwcHXHdrWBKMVBV8CF/DXkyDZ+41zBvtVkT6HR+DKbvxi4U/bOWDyccs5r1Jl36kbc9 f/Ug== X-Gm-Message-State: AOAM532ZnrWHx6W+pDxXu0uFeCYy8gffvqnmxCQDKs6xWU6/cOPecARF /JpUjpTgoyv/NnQ0sPO3vds= X-Google-Smtp-Source: ABdhPJzX+lQEq54XYcimWrtX3wbC9vQvVoImc4J7KvcbA3AEjB2zGgEnji7Gh8ZXDZcDdWu89VIlJg== X-Received: by 2002:a2e:9017:: with SMTP id h23mr10386561ljg.473.1617998832401; Fri, 09 Apr 2021 13:07:12 -0700 (PDT) Received: from [192.168.1.15] (hag-tkubng22-50df3e-132.dhcp.inet.fi. [80.223.62.132]) by smtp.gmail.com with ESMTPSA id t2sm439835lfd.200.2021.04.09.13.07.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Apr 2021 13:07:11 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: Rewrite of zsh-newuser-install (Mikael's subthread) From: Marlon In-Reply-To: Date: Fri, 9 Apr 2021 23:07:10 +0300 Cc: Zsh hackers list Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Mikael Magnusson X-Mailer: Apple Mail (2.3654.60.0.2.21) X-Seq: 48446 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: > On 7 Apr 2021, at 21:15, Mikael Magnusson wrote: > You could also just have a comment saying something to the effect of > "changes to this file will only take effect in new shells, you can > either open a new terminal or type "zsh" in an existing terminal". I > guess I don't care too much either way after all. The problem is that many new users have learned from OMZ and other = sources that they should do `source ~/.zshrc` to apply changes. I = originally had a note that said you should instead either restart your = terminal or type `exec zsh`, but then Oliver & Bart came up with the = current solution. >> Personally, I would=E2=80=99ve preferred `setopt HIST_IGNORE_ALL_DUPS >> SHARE_HISTORY`, but there were several votes against that earlier in = this >> thread. >=20 > I'm glad, those are even worse :). Why? What=E2=80=99s so bad about those? > tab will insert the unambiguous part, and then start cycling > (depending on your setopts, this takes anywhere from 0 to 4 or so tab > presses). Nope, in `interactive` mode, it just inserts the unambiguous part and = that=E2=80=99s it. > Well, I'd have the same objection to either of them, that it's quite a > huge departure from the standard mode of operation which is typing > normally and pressing tab to complete words. I think it=E2=80=99s a great feature that very people actually know = about. Besides that, even when using `interactive`, you=E2=80=99re still = typing normally and pressing Tab to complete words. It doesn=E2=80=99t = change that. Have you tried the feature? >>>> bindkey -M menuselect -s "$key[Backtab]" "$key[Return]$key[Tab]" >>>=20 >>> How is this different from ^[a (eg, accept-and-hold) in menu = selection? >>=20 >> accept-and-hold doesn=E2=80=99t work correctly with, for example, = directory >> completions. To see this for yourself, try `cd /` + Tab + ^[a. Then = try `cd >> /` + Tab + Backtab. Notice the difference. The first one makes no = sense. >=20 > In that particular use case I think you would use = accept-and-infer-next-history. Nope, doesn=E2=80=99t work either. It inserts the selection but does not = advance to the next completion.