Just coded this up today: https://git.sr.ht/~earboxer/dotfiles/tree/master/item/.config/sxmo/userscripts/emojis.sh
It uses the (88MB) unicode-character-database package, parsing a 500K file to create the menu (with around 100ms of latency).
We could improve performance by either
- precomputing the menus (would require a smaller storage size as unicode-character-database would only be a build dependency)
- cache the menus (save a few seconds of install time for manual installs)