Re: Feed for a Vim plugin?

Thomas Leonard <[email protected]> Sat, 28 Dec 2019 19:40:50 +0000
Newsgroups gmane.comp.file-systems.zero-install.devel
Message-ID <CAG4opy9u1FtHvXc_r=Nnu+hL4eiLFB971W4irmahw4BtKB2wug@mail.gmail.com>
On Fri, 27 Dec 2019 at 00:30, Mateusz Czaplinski <[email protected]> wrote:
>
> Hi!
>
> I'd like to create a feed for a Vim editor plugin. I would like to
> then be able to install/download it with 0install, and somehow
> retrieve the local path where it was unpacked, so that I could
> reference this path from my .vimrc file. (How) can I do it with
> 0install?

One way to do this is to create a feed for your custom vim and have it
depend on the main Vim and on every plugin you want. Then you would do

  0install add vim https://.../my-vim.xml

to get it (or use a local XML file, if you don't want to share your
configuration).

The XML source of this page may give some inspiration:

  http://gfxmonk.net/dist/0install/vim-custom.xml

> I created a test feed that you can see at:
> https://github.com/akavel/0catalog/blob/master/feeds/go-explorer.xml,
> but when I try to install it, I'm getting the following error:
>
>   C:\prog\0catalog>0install download
> https://raw.githubusercontent.com/akavel/0catalog/master/feeds/go-explorer.xml
>   Running external solver...
>   [                    ]
>   Can't find all required implementations:
>           - https://raw.githubusercontent.com/akavel/0catalog/master/feeds/go-explorer.xml
> -> (problem)
>               Rejected candidates:
>                 sha1new=b5362a57d7d57a88403340365a7e7e2efabd83cc
> (0.0.20160424): No run command
>
> Any ideas how I could make it download successfully, and how I can
> then get the local path where it was unpacked, ideally from a script?

You could solve this with `--command=` to tell it you're not planning
to run the plugin directly, but the above approach might be better.


-- 
talex5 (GitHub/Twitter)        http://roscidus.com/blog/
GPG: 5DD5 8D70 899C 454A 966D  6A51 7513 3C8F 94F6 E0CC