zquestz / s

Open a web search in your terminal.
MIT License
2.32k stars 114 forks source link

Feature request: Case insensitive providers #131

Closed arunsathiya closed 2 years ago

arunsathiya commented 6 years ago

Will it be possible to allow usage of provider keywords like DuckDuckGo instead of duckduckgo? It would be helpful if providers can be case insensitive.

zquestz commented 6 years ago

So this is super simple at the code level, just downcase the provider info before matching it to the plugin list. However, for the autocompletion scripts (zsh, bash, etc), then it would muddy them up quite a bit.

I am happy to accept a PR for the simple down-casing before lookup.

It would probably be implemented at https://github.com/zquestz/s/blob/master/cmd/search.go#L120

zquestz commented 2 years ago

Next release will have this. =)