🌀 Read URL
An annex allows automatically downloading the newest version of a file to which the URL is hosted on a webpage. It works as follows:
Invoke snippet (or simply pass the https://… address using the for syntax) on the web page that hosts the URL to the file to download, provide dlink'…' ice with the expected file-download URL replacing the version with the %VERSION% keyword, also provide as'…' ice with one of the following values:
readurl,readurl|command,readurl|completion,readurl|null.
备注
The part after the | has the same meaning as in the normal as'…' ice.
Examples
zi id-as=fzf as='readurl|command' for \
dlink='/junegunn/fzf/releases/download/%VERSION%/fzf-%VERSION%-linux_amd64.tar.gz' \
https://github.com/junegunn/fzf/releases/