microsoft / inshellisense

IDE style command line auto complete
MIT License
8.38k stars 187 forks source link

Loading autocompletion specs from outside the withfig/autocomplete repo #83

Closed pzmarzly closed 5 months ago

pzmarzly commented 10 months ago

In https://github.com/withfig/fig/issues/2828 I've proposed to make Fig start loading autocompletion specs from a local directory (e.g. /usr/share/fig-autocomplete/mycli.json) in addition to withfig/autocomplete repo. This has some benefits, such as not being tied down to 1 company, being able to create autocomplete specs for internal (confidential) CLIs without publishing them to the wide world, and more (see the list issue).

I'm opening the issue here for visibility and to encourage discussion under original link. I think that it's in best interest of Inshellisense to support that, and if Fig implemented it, Inshellisense may want to follow soon.

cpendery commented 10 months ago

Fig already supports loading specs locally as mentioned in their docs here.

pzmarzly commented 10 months ago

Aaah i missed that! Still, it supports ~/.fig/autocomplete/build but nothing machine-wide (/usr/share/...)

hustcer commented 6 months ago

I need this feature badly. Can it has a higher priority ?Thanks

alanhe421 commented 5 months ago

I need this feature badly. Can it has a higher priority ?Thanks

Try installing the latest version.

image