-
Notifications
You must be signed in to change notification settings - Fork 2
Description
This addon works by finding the text between [ and ] braces, and then finding an entry with exactly that title. But the title has to be exactly right.
It would be very helpful for editors/writers/marketers if the addon also provided an autocomplete/autosuggest functionality in the editor, so when someone types a brace [ and starts typing characters, the addon begins suggesting the most likely entries to match. The user can then suggest the right one and the title is entered perfectly.
Likely that this would require Livewire as well as Alpine.
Possible inspirations:
- Ghost have recently added similar functionality: https://ghost.org/changelog/internal-linking/
- The Statamic live search addon: https://github.com/jonassiewertsen/statamic-live-search
- The Livewire autocomplete component https://github.com/joshhanley/livewire-autocomplete
- Blog on building a typeahead component with Alpine and Livewire: https://chrisdicarlo.ca/blog/-alpinejs-and-livewire-autocomplete/
As discussed, this is just an idea for improving this addon. You may feel the addon is best kept simple rather than extended.
I'm a newbie, gradually learning Statamic, and am a writer with only enough coding skill to be dangerous, but would be happy to jump in and help or make what progress I can.