zsh-users
 help / color / mirror / code / Atom feed
* Call for ideas for Ice-modifiers for Zplugin
@ 2017-05-16 11:49 Sebastian Gniazdowski
  0 siblings, 0 replies; only message in thread
From: Sebastian Gniazdowski @ 2017-05-16 11:49 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-05-16 11:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-16 11:49 Call for ideas for Ice-modifiers for Zplugin Sebastian Gniazdowski

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).