Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Updates to the Plugin Standard
- X-seq: zsh-users 24387
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: gi1242+zsh@xxxxxxxxx
- Subject: Re: Updates to the Plugin Standard
- Date: Fri, 25 Oct 2019 23:39:24 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- 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=pIw+O7u6TY9bvFwP08jj+wg2m5S6ZE+dOWUIPyds6Uk=; b=giaGDVSFTT1X2niRJA6c2+7ZLWvp/z2tyFqqgcWkZ881a0k8BPyIRZWt+5ZFRwKQr5 oquMciPX0geTYuXbdF5HSnL6MlQfUGPaR3qFwXOicjRJ3Iqkv2wsmNJBlR4K4OUQeHxg F7Wq6oXX8OkmK0SV6oAjjwRZ+oOaNZir+hMpvQFqFFXtWyiPDUHUidKLl3jduCztxXHr X0Zac+gP6cWo70xULiRlYHscmh4frhEpt4h6X+HxE8uz5Q6Dj3n3RcPufOXOUqQDKcPM +EqlymmmK7K6lJKsd3wlMCgCkeNgyLWNOlEakMwPc6cfmkvjwXAN3Pcy2KVBpT1FtqXl ekKA==
- In-reply-to: <20191025190645.GN18530@andrew.cmu.edu>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVD98BeScExdoZH=aoDCUZNeeqbaUWcxW8JHoo9SvZAHWQ@mail.gmail.com> <20191025190645.GN18530@andrew.cmu.edu>
pt., 25 paź 2019, 21:08 użytkownik <gi1242+zsh@xxxxxxxxx> napisał:
> I took a quick look at the namespace prefix section: That looks a bit
> overkill to me. Also using . and / as function prefixes can easily get
> confused with paths.
>
> I'd suggest using just one name space prefix for everything to keep
> things simple. It could be ::function, or pluginName::funciton for
> instance.
>
The section has purely advisory character. However for the pluginName::
proposal there's a valid argument - the possible conflict as in
https://github.com/zdharma/fast-syntax-highlighting/issues/157.
As for the points about the dot and / prefixes, I'll take them into
consideration. Right now I can tell that the / prefix is used for debug
functions because they're most outside from the main code. They're side to
the main code, hence the overall nice (and most of all – available) but
otherwise problematic ASCII character '/' has been selected to them. The
other available characters, like ^ aren't available because of the <= 5.7.1
autoload bug (https://www.zsh.org/mla/workers/2019/msg00534.html) however
hence / isn't available for autoload anyway, the character might get
changed. Any propositions for a replacement?
If there are too many types, it makes it more confusing / cumbersome
> when writing.
>
My subjective impression is that the : prefix is especially useful. Many
functions are hooks, and it's nice to list them as in
https://asciinema.org/a/277059, just to see them grouped (noticing: they're
cannot be directly completed, entering :<TAB> tries to complete the
modifiers, is there a way to change this?).
I foresee that the number of prefixes will not get smaller, it might get,
however, larger, when the Unicode characters will get mentally accepted
into consideration. I'm already using …-prefix in one of my projects as
it's easy to type (Alt-k on my keymap), to denote a "backend function",
i.e. a function that is a closed black-box -like thing that is getting the
requests to do the dirty work at the end of a multi-stage preparement. The
function is called: …zp-test-make-targets.
GI
>
> --
> 'Common' Proof Techniques:
> 12. Proof by obfuscation -- A long plotless sequence of true and/or
> meaningless syntactically related statements.
>
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author