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 21429 invoked from network); 9 Feb 2021 09:45:29 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 Feb 2021 09:45:29 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1612863929; b=Vtng5xO6SXwrX4CLdNAKSb2fCi4f+1K+oLlCqhAkl25MTrF5bOUbIQc+2lFtv8VkkypVo6OH0v 7c8BdKhWJwQcKPGJJJ+803we3BrFlFU7ijgqbPrPG2n8JB97syajNfkEMM5UGKDg4QUUokEtbI SfUgqci5y494PY8Jp1CS2Gyut065ohhlwMrLjDjYqnne273zCB7TcKXP/XNTEWHIOtRyiwgUBE IK15Owu1/UGfA+dHzNhDC1vKTFsJN/Bm/HYTRWHjFBUiS5+bCZxApOtLfGWTRasbH4lDLtm0gW apKX/aKbjNUcJ75B5WrNb0yA7FzGUbH0muEqm8Ux5NvERg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f181.google.com) smtp.remote-ip=209.85.208.181; 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=1612863929; bh=EEMhL1Q5X110NJCy+3IFdatI+sprmnusaihlHadFjl8=; 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=vgMOoFyVc1iHOLRgE6iPb81SKqwusvdE8QJYlt3wlqU+9aksDpMUzMhfqd9DiW2E0r/uZSCAcY rVdileEYG+YDBpH2mWwXwFitZ3OxRVb6mdSdp42kVIuuk9o+6YZWr8Zg6lv1AWwW9IbT2rGSKL auXRE8D+iKLmI/ubO0zH1DwGcTirjLQ/qwQVSyg7yP0ksvj2rp74CZHX3H7Jyl+SBc9k8hTsvA QCQq9dL9FCpWY/YjWxcfvVV3B1nY525+JuNtBWF3nGMK26iR3xlitQHM2JJIXILFzJO+POx6fN aU2gV0lfvchk5c6peG2t5eJMJ1hxCMA/U0Ic5l23reTB1g==; 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-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=EEMhL1Q5X110NJCy+3IFdatI+sprmnusaihlHadFjl8=; b=q/vmNI5mkss2wA7SDJtf5o/bVi Qdv8f1b3EOZOA/jMy2b3zY9us3+8B7Hb1kFzYF/GocNUmb2jP+FRe2VPgH1lLE9Z5/UnOerkokGD2 azTJ2BvCUnWSJFpvajLH4Kn1DoVvbX2Z+exPxkHXOFxPSPtNVwM8bVbRagSqqyXzxl5h6q/N3zuqu 4zU2LRRJr47YFqIvqEudNgM4OB8BGEqU3HX9/NyiUHVWS884CqFUJ4lLIV6P3vv6zdjIJ6qB4YhMk 8Vjdo3jgXBIc8cDn6GM+IC60t/0hu4q0m7WbpcHdoYBslBq9nEc8tV88HWwV6Wgb3COxONO32fKLK TJJF5qYQ==; Received: from authenticated user by zero.zsh.org with local id 1l9PaK-0001Jr-Kl; Tue, 09 Feb 2021 09:45:28 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f181.google.com) smtp.remote-ip=209.85.208.181; 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-f181.google.com ([209.85.208.181]:44498) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1l9Pa7-0001CK-6j; Tue, 09 Feb 2021 09:45:16 +0000 Received: by mail-lj1-f181.google.com with SMTP id f2so21427409ljp.11 for ; Tue, 09 Feb 2021 01:45:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EEMhL1Q5X110NJCy+3IFdatI+sprmnusaihlHadFjl8=; b=Czct9NS2LL3ZdlyfaryWj800c4ngiGyvtIWnDS4b3/hqjZ/KuRleyoh+/zbE818GeL lJkfsunRg3CccydCxdlHXF+WvfFvLv59eWlQJsF6Rk6d8bIGjjQtJH+0/N2l1N0lL3Np l26fBSIue0thMKO+59kXtgjt5TtrrKXddcj3D5n0CbrqNVlgIl3moaHfiRjngwahr+u6 XVcNIuQeAL2Yu/XdUJewFqtYaQGibN5OCSAmftpLAMw8wgODxLcfhi8lPxqeRbjN7jcS PbMqbA1qDXvuOX3gsaA5LjQOAIr5bAOEGv0hoCd1ZTSMKzZlQ1fnE6stg5B6nAGYsqSL bRPQ== 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; bh=EEMhL1Q5X110NJCy+3IFdatI+sprmnusaihlHadFjl8=; b=VerifIVoQqbOZVt3fGE8t+QbfFNFJedgjabmy8EkQPqbCABb57BD/+Pr04kgUe7Qo7 5Vrxu4WLQ96wcrDaofvaLB8+AHuWwUivkNezYdX9tnxi6sBX41MhFA23YuJO0T5v1nM/ PKCRtjMK+XMaOw0QvJwnEl4hVvJOSY9c01FzlAwyZ/808ABTj1XFa9XSIV15K7lM4Roh 7HVKxClGaA3Te4+G/IsYaqAPt6eZQl9HqM3QHMcXww4GxBwhmytUluF80i5ps0ubh6Ul PCVJ0L0h6cSDyUAe7GAKJ6nvqaftTCKWWi7juuZ35h2KGSIei8nvM5MfsPg6KsoIUEkE NlPw== X-Gm-Message-State: AOAM530/i+pSPtIk4w5bBHFuquNHfmplP/vZ/GdbpCVHb7I5uK8J1+7i iY/5BksE3Ny7O2G4EJSthETW58eKb27aah6yIM8= X-Google-Smtp-Source: ABdhPJyeE76q5ks6Ca9ssSFydpnKOb2P5AaLKGGEsooQzselVC7yuPCf9Yp8a0MI4P6lUtrxnIPhWSD6hewm/kbICWg= X-Received: by 2002:a2e:9f4e:: with SMTP id v14mr14118325ljk.497.1612863914274; Tue, 09 Feb 2021 01:45:14 -0800 (PST) MIME-Version: 1.0 References: <0102017778f35f33-a962e4d3-83e9-4d3b-a0d7-45701bb40b11-000000@eu-west-1.amazonses.com> <8BA25288-0FFB-4FF4-9799-541D6A3C52DA@dana.is> <19996A10-103F-4054-AD57-FCED8E406687@dana.is> In-Reply-To: <19996A10-103F-4054-AD57-FCED8E406687@dana.is> From: Marlon Richert Date: Tue, 9 Feb 2021 11:44:37 +0200 Message-ID: Subject: Re: Rewrite of zsh-newuser-install To: dana Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 47970 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: Archived-At: On Tue, Feb 9, 2021 at 6:51 AM dana wrote: > Sorry in advance for how inherently bike-sheddy this whole process will be. :/ That's OK. Besides doing software development, I also work as a UX designer. I'm used to getting critiqued and lots of people having opinions. :) I will adapt most or all of your suggestions, but I do have some comments/questions regarding some of your remarks: > > zstyle ':completion:*:(functions|parameters|users)' ignored-patterns '[[:punct:]]*[[:alnum:]]*' > > Not sure about this. I like hiding completion functions (which i did in mine), > because their naming format is pseudo-reserved for zsh by convention, and i've > seen many people confused by their appearance in completion possibilities. But > anything beyond that seems heavy-handed for a default. There are various Zsh plugins and plugin managers that mark private functions and parameters with various punctuation prefixes. It's annoying to get these randomly inserted into completions and makes the completion system that much harder to use. Since there is no consistency between plugins & plugin managers what prefix to use for private functions and all punctuation symbols appear to be fair game, I prefer to use a blanket ignore pattern like this. I haven't yet found a case where it would hide something that I would actually want to see. Additionally, as someone else pointed out, macOS has a ton of system users with names that start with underscores. You generally don't want to see those either. > One thing i definitely don't like is the _lowercase function, > since as i mentioned that naming convention is pseudo-reserved. Well, that function is used for completions, so I felt that it made it OK to use the _ prefix. However, I will happily remove the lowercase sorting logic altogether. > Thanks for resurrecting this idea btw You're welcome. Thanks for your thoughtful comments. :)