kcmerrill / alfred

(v0.2) Even Batman needs a little help. Task runner. Automator. Build system.
MIT License
63 stars 14 forks source link

Offline mode #3

Closed kcmerrill closed 7 years ago

kcmerrill commented 7 years ago

Currently, every request for custom modules etc are sent to the web.

We should download the contents each time, and if unable to find we should take a look in ~/.alfred/offline/modulename/alfred.yml

bantl23 commented 7 years ago

I'll take a crack at this. Every time a file is pulled from the web it will be saved off into ~/.alfred/offline/<remote>/<module>/alfred.yml. If the web is unavailable it check that location. If the file exists it uses that, otherwise it will report the original error.