-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature idea: Helper in markdown/bard editor to find correct title #5
Comments
I wouldn’t be Livewire because we don’t use Livewire. Would need to be Vue.js and/or tiptap/prosemirror stuff. To be fair, this addon was just a proof of concept — a full wiki solution would need a lot more than a modifier :) On Jun 27, 2024, at 2:43 PM, Steve Parks ***@***.***> wrote:
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.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
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.
The text was updated successfully, but these errors were encountered: