zsh-users
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <psprint@zdharma.org>
To: zsh-users@zsh.org
Subject: Call for ideas for Ice-modifiers for Zplugin
Date: Tue, 16 May 2017 13:49:39 +0200	[thread overview]
Message-ID: <etPan.591ae753.2eb141f2.6b4c@MacMini.local> (raw)

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


                 reply	other threads:[~2017-05-16 11:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=etPan.591ae753.2eb141f2.6b4c@MacMini.local \
    --to=psprint@zdharma.org \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).