k2d222 / twwe

Teeworlds collaborative map editor online
GNU Affero General Public License v3.0
13 stars 1 forks source link

Add fuzzy map search (#43) #55

Closed ChillerDragon closed 2 years ago

ChillerDragon commented 2 years ago

Not my proudest code.

I totally broke your functional code and made refresh() go full side effects. Also had to move the promise await out of the inline js. During that refactor I sadly lost the catch with the nice error message.

The search is case sensitive and not fuzzy. I will look into that. This horribly refactor should lay the groundwork for easier fuzzy search.

:heavy_check_mark: it is now fuzzy

https://user-images.githubusercontent.com/20344300/180169895-b18b95b9-9e98-42f2-aa25-c2394002b088.mp4

k2d222 commented 2 years ago

Glad you had a go at this! Didn't wanted to do it myself :eyes: The code is not so bad lol

ChillerDragon commented 2 years ago

Gimme a min and fuzzy is in

ChillerDragon commented 2 years ago

https://user-images.githubusercontent.com/20344300/180174548-4d401c3e-d4bf-4054-8706-998dea126fb0.mp4