jorgebucaran / fisher

A plugin manager for Fish
https://git.io/fisher
MIT License
7.55k stars 257 forks source link

Fetch arbitrary tar.gz as plugin #667

Closed TeddyDD closed 3 years ago

TeddyDD commented 3 years ago

Proposal, generalization of #657

install command should allow installing plugins from arbitrary URL

So if install argument is not Github short form or Gitlab URL then install should just assume that argument is a URL that points to tar.gz file.

This would enable users to install plugins form

without any changes in Fisher code.

jorgebucaran commented 3 years ago

Cool, but can we get the namespace and name from the URL alone? Fisher needs a way to identify plugins, e.g., piyo/poyo.

TeddyDD commented 3 years ago

With heuristics - not reliably. This information would have to be passed by the use explicitly or the requirement to have namespace/name would have to be relaxed.

jorgebucaran commented 3 years ago

It's tricky then. Particularly difficult is implementing updating and removing, since we can't rely on the URL to generate the plugin/name, not to mention error handling.

jorgebucaran commented 3 years ago

Closing as I won't be implementing this and I'm not looking to add this to Fisher any time soon.