Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Rewrite of zsh-newuser-install
- X-seq: zsh-workers 47970
- From: Marlon Richert <marlon.richert@xxxxxxxxx>
- To: dana <dana@xxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Rewrite of zsh-newuser-install
- Date: Tue, 9 Feb 2021 11:44:37 +0200
- Archived-at: <https://zsh.org/workers/47970>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-02/CAHLkEDsLnAW-50ftmA-2_kmzxyF17MXZW687KWA1xXXu4sBbAg%40mail.gmail.com>
- In-reply-to: <19996A10-103F-4054-AD57-FCED8E406687@dana.is>
- List-id: <zsh-workers.zsh.org>
- References: <CAHLkEDv8KDW0iy+EtLXRgFOzgF1BbK5rEKjNBO-=NNUeKR9Xwg@mail.gmail.com> <0102017778f35f33-a962e4d3-83e9-4d3b-a0d7-45701bb40b11-000000@eu-west-1.amazonses.com> <CAHLkEDvL8+32tFQ1n6=SsaRMFQB3U2Di=6qpHtNBz8SkwzH7Zg@mail.gmail.com> <D6B297FA-044D-4F4E-8110-D6F4E2058EFE@larryv.me> <CAHLkEDvToxSvZWGMg7MKkFXjjWEefXW8e=gd+0e5RmuBLkVWEw@mail.gmail.com> <CAN=4vMqjYNtm3KSq47kC_2O4k3=hzF7qwN0sK9deCNgc2xK=kg@mail.gmail.com> <CAHLkEDvrcTdW2B3mxFAj8a7Wmfz-0KHGJkvi5hEdcCFSaP64NA@mail.gmail.com> <8BA25288-0FFB-4FF4-9799-541D6A3C52DA@dana.is> <CAHLkEDvWsv=hTHJ+70d1RQM7sH5_w94LYKhgrV2=vNMTchnx8w@mail.gmail.com> <CAHLkEDur33X5s7Ar8n-9zQR0GqoZm3u_8rPRF3P-Jf=v90aLUA@mail.gmail.com> <19996A10-103F-4054-AD57-FCED8E406687@dana.is>
On Tue, Feb 9, 2021 at 6:51 AM dana <dana@xxxxxxx> 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. :)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author