xenonsb / Haxball-Room-Extension

Room search (originally by Raamyy) + AutoJoin + Admin shortcuts
GNU General Public License v3.0
11 stars 7 forks source link

Feature request: AND operator in the search field #14

Closed erenseymen closed 4 years ago

erenseymen commented 5 years ago

Search field currently supports OR operator by using + sign. It would be nice to have AND operator too. For example, if "hp power" is entered in the search field, it should filter all rooms with "hp" and "power".

xenonsb commented 4 years ago

It is sorta there - for example if we had a list of room names as follows:

If your search term is "hp power+hello", you'll get the first 3 rooms - just that the search terms need to be in the same order. I don't have plans to implement stronger filter logic based on room name outside of this, sorry :(

erenseymen commented 4 years ago

If rooms are like below, "hp power+hello" won't filter first 3 items. hp 123 power hp 456 power hello world don't select

xenonsb commented 4 years ago

Actually came up with this on a stray thought - it's coming up.

xenonsb commented 4 years ago

Added in 0.3.4 - thanks! Logic: separate AND keywords using space, OR keywords using +, room limit using /limit

erenseymen commented 4 years ago

Thank you very much