Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Call for ideas for Ice-modifiers for Zplugin
- X-seq: zsh-users 22700
- From: Sebastian Gniazdowski <psprint@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Call for ideas for Ice-modifiers for Zplugin
- Date: Tue, 16 May 2017 13:49:39 +0200
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hello,
ice is something that is easily added and something that melts. In Zplugin ice modifies next command, and melts, leaving following commands unaffected.
% zplg ice from"notabug" atload"echo --Loaded--" atclone'echo --Cloned--'
% zplg load zdharma/zui
Downloading zdharma/zui...
...
Checking connectivity... done.
--Cloned--
Compiling zui.plugin.zsh...
--Loaded--
% grep notabug ~/.zplugin/plugins/zdharma---zui/.git/config
url = https://notabug.org/zdharma/zui
The format from"bb" (bitbucket) means "bb" will be syntax highlighted in editor. One can even use from$'nb' (notabug.org) to have greater visual separation.
What ice-modifiers to add?
I can tell that this technique, of having modifiers hanging in air, would be good for the hypothetical official plugin manager. It is trivial to parse and the injection of actions mostly single lines of code, like: ( (( ${+ZPLG_ICE[atclone]} )) && eval "${ZPLG_ICE[atclone]}" )
All Zplugin news: https://github.com/zdharma/zplugin#news
--
Sebastian Gniazdowski
psprint /at/ zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author