Re: Feed for a Vim plugin?

Mateusz Czaplinski <[email protected]> Sun, 29 Dec 2019 13:50:37 +0100
Newsgroups gmane.comp.file-systems.zero-install.devel
Message-ID <CACZYt3R4fr64N2XbUBKPnZ+NWoo3KdjuMXQDaWrq68nAPGj=mw@mail.gmail.com>
--===============5619765745542933122==
Content-Type: multipart/alternative; boundary="00000000000022fa3a059ad72d88"

--00000000000022fa3a059ad72d88
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sat, Dec 28, 2019 at 8:41 PM Thomas Leonard <[email protected]> wrote:

> 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 [...]
> The XML source of this page may give some inspiration:
>
>   http://gfxmonk.net/dist/0install/vim-custom.xml


I looked into this file, but I don't yet understand some aspects of it.
Specifically:
- there seems to be some "vim-custom-<ID>.tgz" file referenced; not sure
what's (supposed to be) in it...? I must say I'd prefer if I didn't have to
host some special vim tweaks in a custom-tailored tarball, I'd love if I
could just use a vanilla vim tarball...
- in my .vimrc, how can I get the list of plugins available, and how to
find their paths? is it somehow done with the VIMPATH env var refrenced in
a few places of the feed?


> > 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=3D` to tell it you're not planning
> to run the plugin directly, but the above approach might be better.
>

Thanks! That seemed to work indeed! Still, could you advise how I can then
find out the directory in the 0install caches where some particular feed
got downloaded and unpacked? I tried `0install store list-implementations
<my-name>` - it seems to show the hash, but not sure how I can know in what
absolute directory it is located...

Thanks & Best Regards,
/Mateusz Czapli=C5=84ski.

--00000000000022fa3a059ad72d88
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Sat, Dec 28, 2019 at 8:41 PM Thoma=
s Leonard &lt;<a href=3D"mailto:[email protected]">[email protected]</a>&gt; =
wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0=
px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, 2=
7 Dec 2019 at 00:30, Mateusz Czaplinski &lt;<a href=3D"mailto:czapkofan@gma=
il.com" target=3D"_blank">[email protected]</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi!<br>
&gt;<br>
&gt; I&#39;d like to create a feed for a Vim editor plugin. I would like to=
<br>
&gt; then be able to install/download it with 0install, and somehow<br>
&gt; retrieve the local path where it was unpacked, so that I could<br>
&gt; reference this path from my .vimrc file. (How) can I do it with<br>
&gt; 0install?<br>
<br>
One way to do this is to create a feed for your custom vim [...]<br>
The XML source of this page may give some inspiration:<br>
<br>
=C2=A0 <a href=3D"http://gfxmonk.net/dist/0install/vim-custom.xml" rel=3D"n=
oreferrer" target=3D"_blank">http://gfxmonk.net/dist/0install/vim-custom.xm=
l</a></blockquote><div><br></div><div>I looked into this file, but I don&#3=
9;t yet understand some aspects of it. Specifically:</div><div>- there seem=
s to be some &quot;vim-custom-&lt;ID&gt;.tgz&quot; file referenced; not sur=
e what&#39;s (supposed to be) in it...? I must say I&#39;d prefer if I didn=
&#39;t have to host some special vim tweaks in a custom-tailored tarball, I=
&#39;d love if I could just use a vanilla vim tarball... <br></div><div>- i=
n my .vimrc, how can I get the list of plugins available, and how to find t=
heir paths? is it somehow done with the VIMPATH env var refrenced in a few =
places of the feed?<br></div><div>=C2=A0</div><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,20=
4);padding-left:1ex">&gt; Any ideas how I could make it download successful=
ly, and how I can<br>
&gt; then get the local path where it was unpacked, ideally from a script?<=
br>
<br>
You could solve this with `--command=3D` to tell it you&#39;re not planning=
<br>
to run the plugin directly, but the above approach might be better.<br></bl=
ockquote><div><br></div><div>Thanks! That seemed to work indeed! Still, cou=
ld you advise how I can then find out the directory in the 0install caches =
where some particular feed got downloaded and unpacked? I tried `0install s=
tore list-implementations &lt;my-name&gt;` - it seems to show the hash, but=
 not sure how I can know in what absolute directory it is located...</div><=
div><br></div>Thanks &amp; Best Regards,</div><div class=3D"gmail_quote">/M=
ateusz Czapli=C5=84ski.<br></div></div>

--00000000000022fa3a059ad72d88--


--===============5619765745542933122==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============5619765745542933122==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Zero-install-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/zero-install-devel

--===============5619765745542933122==--