daem-on / wtherion

A web-based Therion map editor
https://daem-on.github.io/wtherion/
MIT License
17 stars 2 forks source link

elements find #14

Open Shemesh opened 2 years ago

Shemesh commented 2 years ago

hi, is there a way to search by text? for example - i want to find a scrap\station\etc by its name.

wish: ctrlF open a search box, type a text will show the number of hits found, button find next\prev will select relevant item in the drawing.

daem-on commented 2 years ago

This is good idea, and it's actually pretty easy to implement. However wtherion doesn't store the items as text, so what do you think specifically it should search through?

All items have IDs, stations also have names, and labels have text. Is there anything else?

We could also search through every property of every object but I think that would be unnecessary and slow.

daem-on commented 2 years ago

Take a look at 60e2fbbb6ed89e761ae1c9d025d684eadbb4967b

Shemesh commented 2 years ago

looking good! plz deploy it to the beta site, so it can be tested

daem-on commented 2 years ago

It's a CI, it deploys automatically. You can find the deployment for each commit directly on netlify as well: https://app.netlify.com/sites/roaring-gelato-4ea2f4/deploys/63122bd691754b0008687781