Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Proof of concept mainstream plugin manager
- X-seq: zsh-workers 37729
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Proof of concept mainstream plugin manager
- Date: Fri, 22 Jan 2016 20:44:07 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=iG/a6ppCWkAEPNMojoAZ/beCZtMGKbTkpyyFGR4wMRY=; b=s8Ck65cpbg/DgI+iz4zB9lrbf83d94GL3WjTcF4F6RXBy+n/gMOtvpPkPiq45qmiSW nfZx54yprrept/uQ3hIWL5dc6OZc3KueDpH8r2zZGKU/uTTI9QjPz/mY0JhYgWd/4qAU Jad3wI/67yy+cP2WxovdQFN6eg14OIFw9KFfA42TjecNJST/0jY9hDUlTPIj7fJ24163 WBCuKziW13DjpoiDO00KJhbfJYxiDy8VDlGWY7aXkfOUyLboMow5pG8xZdHwp5lm3WP8 WsnCuy1FAMm8SOvMto+IEZnOnHZw3a3YGNLa3ug+2CckGPbtDLDpND5PEZD0SAg93etF pULQ==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello
There are many plugin managers but the technology is not very
astonishing. The managers add any plugin to $fpath and that's pretty
it. FPATH gets flooded, possibly naive code gets injected into
session. That's why the technology isn't very popular on this mailing
list and on IRC.
I've utilized Bart's idea to prevent fpath from flooding:
function some_function_from_plugin {
local FPATH=/path/to/the/plugin
autoload -X
}
and written a plugin manager that utilizes this. Furthermore, any
autoload, bindkey, setopt is catched and a report of plugin operation
can be obtained:
https://asciinema.org/a/f4g9dgqcq2w7998761qyigqa2
I've written the proof of concept software in 1 hour. I wonder, could
this be a path that Zsh mainstream could take to provide robust
technology for plugins, whose users demand? I imagine much more can be
done if mainstream pairs of eyes will look at this. Any ideas of what
can be done?
https://github.com/psprint/zsh-plugin-governor
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author