zquestz / s

Open a web search in your terminal.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: Case insensitive providers

arunsathiya opened this issue · comments

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.

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

Next release will have this. =)