sophie-glk / bang

A firefox addon which adds bangs (known from duckduckgo) to various search engines.
MIT License
46 stars 5 forks source link

Add pattern matching for bangs #1

Closed babastienne closed 4 years ago

babastienne commented 5 years ago

If I want to use multiple bangs to redirect on the same URL I need to duplicate the URL so I was thinking about using a pattern matching in order to make it easier.

Example

For example if I want to use the bang !spotify to search a music and also want it to works when I use the bang !spoti, today I need this configuration : image

Maybe using a pattern like `"spoti"||"spotify" it could work and be like that :

image

sophie-glk commented 5 years ago

Thanks for the suggestion (and for using this addon)! I have now added alias support. Because spaces don't work in bang names anyway i have decided to just use a space as a separator. You should now be able to use multiple names for a bang like this: "spoti spotify music" . It would be nice if you could give me feedback / tell me if have introduced any bugs, before i push the update to the store.

babastienne commented 4 years ago

Thanks for adding this feature. I'm currently testing it, I will keep you informed if I find any issue.

babastienne commented 4 years ago

The multiple names for a bang is working just fine, thank you very much for adding this. I haven't notice anything in particular related to this.

However I've noticed two minor issues on different topics. I will create them soon.

I let you close the issue if you think the problem is solved. In my opinion it is.