Tuesday, March 29, 2016

Load all opt plugins in a package at once?

(Sorry for yet another post, but I have embraced packages and I really like
them!)

To load all the optional plugins of a package a :packadd command must be issued
once for each plugin.

What do you think about adding a command that loads all the plugins in an opt
directory at once? Something like:

:packaddall[!] {name} Search for a package directory in 'packpath' and source
all the plugin files found inside each optional plugin
directory in that package. The directory must match:
pack/{name}
For each directory pack/{name}/opt/foobar, a
`:packadd[!] foobar` command is issued.

A command like the above might not be necessary in a (future) world where each
plugin takes care of loading its own dependencies from the same package. But
I can imagine a situation in which a user may build its own package by putting
together loosely coupled plugins. Or a package that provides some optional
extensions, which are independent of each other. In those cases, a command like
the above might be convenient.

Nicola



--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: