samwho / symbol.wtf

A dumb website I made for when I need a symbol.
https://symbol.wtf/
MIT License
61 stars 42 forks source link

Add and move symbols #54

Closed technetium closed 3 months ago

technetium commented 5 months ago

I'd like the the option for visitors to add symbols and move them and store the symbols and order in local storage. Is somebody working on that already?

samwho commented 5 months ago

This crossed my mind a few days ago, but to my knowledge nobody is working on it. I don't plan to add it myself, but I would happily review a PR if it's something you're interested in doing!

The way I'm envisioning this working (after only an hour or so of thinking about it, so feel free to suggest other ideas), is an unobtrusive + button next to the search box that pops up a form/modal for adding your own symbols. Custom symbols would then appear first in the list, and be visually distinct from the "default" ones. They would save into local storage and be available on the device you've saved them on. No plans for any auth or cross-device syncing.

technetium commented 5 months ago

My plan was to add a square, the same size of the symbols at the end of the symbols. I like your plus next to the search button better.

If nobody is working on it, I'll first make the adding of symbols. They will be just added as the first symbol.

Next step will be the possibility to change the order of the symbols.

I don't see any benefit of having the "defaults" be visually different. I do see a benefit of having visual distinct classes for different symbols (e.g. accented characters, math symbols) Maybe adding check boxes for different classes? Could make the added ones having a different default class than the default ones.

Indeed every thing stored in local storage. Cross device syncing will be left as an exercise for other developers ;-)