Hoboneer

Results 26 comments of Hoboneer

Perhaps you could do something similar to what The Great Suspender [did](https://github.com/deanoemcke/thegreatsuspender/blob/2e06ac873f9be5c2692f66fcedb57fb79a48348a/src/js/gsTabSuspendManager.js#L253) and check the [navigator.onLine](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorOnLine/onLine) attribute.

Easiest thing to test: Known usage errors in the CLI should return the appropriate exit code (and print the correct error message?),

Use [tox](https://tox.readthedocs.io/en/latest/)? This would provide a good motivation and framework for testing. Also, testing against multiple Python versions would be nice.

I don't think that the startup time can be decreased much further. The import time for `jinja2` is ~45% (0 d.p.) of the total, taken from the above timings--which excludes...

For completions from APIs, I'd like to limit the completions rate. Should the elvis itself handle this? Maybe just document that you shouldn't do excessive suggestions to avoid getting your...

It should support common suggestions formats: 1. jQuery (as used in `nzsl`) (JSON) 2. OpenSearch suggestions (JSON) 3. OpenSearch suggestions (XML) Are there any more?

For the interface, maybe `suggestions_url` and `suggestions_url_type` can be attributes (and kwargs in constructor) of `Elvis`? I'm thinking `suggestions_url_type` is either a string or an enum. If a string: `jquery`...

jQuery suggestions use a `term` query parameter to base their output on. When building autocomplete widgets, `source` contains a URL which `?term=TERMS` will be appended to. See https://github.com/Hoboneer/surfraw-elvis/issues/5. Regardless, I...

Also, it would be good to allow the user to configure whether they want to complete from the network--say, `SURFRAW_complete_network`, a boolean value that defaults to true. If a network...

More generally, the elvis could handle multiple types of query completions, a few of which would be from the network. Some ideas: - `packages` (uses `apt-cache` or whatever packaging tool...