Re: Feed for a Vim plugin?

"Bastian Eicher" <[email protected]> Wed, 1 Jan 2020 22:40:03 +0100
Newsgroups gmane.comp.file-systems.zero-install.devel
Message-ID <[email protected]>
> 1. Is there a way to find out from command-line which version of a particular "implementation" of a specific "interface" is currently installed?

Note that with Zero Install there is not really a concept of something being "installed". Rather an implementation is "selected" by the dependency solver and then downloaded/cached to be run.

0install select http://example.com/feed.xml
shows the version/implementation (including potential dependencies in a tree-like view) that would be used by "0install run".

0install select --xml http://example.com/feed.xml
gives you a machine-readable version of this output.

0install store list-implementations http://example.com/feed.xml
lists all version/implementations that are currently in the cache from previous runs of "0install download" or "0install run". It does not show dependencies.


> 2. For Vim, I'd like to be able to have it available on Windows in an "Open with" context menu *for all file types*, while not being the "default handler" for any file types. Do 0install desktop integrations allow for such a variation?

If a feed lists <file-type>s and you perform desktop integration with Zero Install for Window (either using the GUI or the "0install integrate" command) that is exactly what you get. Zero Install registers the feed/app as an "Open with" candidate for the specified file types. It leaves setting the default handler up to the Windows GUI. As a matter of fact, starting with Windows 8 the OS actively prevents third-party applications from changing a file type's default handler.