Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Call for ideas for Ice-modifiers for Zplugin

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.
    Compiling zui.plugin.zsh...
    % 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