minetest-mods / i3

:rocket: A next-generation inventory for Minetest 5.6+
Other
41 stars 26 forks source link

[FEATURE] Shorthands for search filters #65

Closed Beethoven-n closed 2 years ago

Beethoven-n commented 2 years ago

The +param=string filtering option is really great, but it's a bit unfamiliar, and relatively undocumented. A more intuitive option might be to also add specific characters for common filtering parameters. For example, to search through all items from moreblocks, you could do either @moreblocks or the current +mods=moreblocks. To put it in terms of functionality that already exists, it could also work so you could do either ^wood or +groups=wood.

kilbith commented 2 years ago

To search through all items from moreblocks, you simply type moreblocks.

Do note that search filters are incremental so you can combine them.

Example:

door +mods=fancydoors +groups=luxury,wood

Beethoven-n commented 2 years ago

you could do the same with shorthands. example: door @fancydoors ^luxury,wood see how this saves characters while still clearly indicating what terms do what?

kilbith commented 2 years ago

No, that’s pretty confusing to me. Imagine if there are 10+ search filters.