-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
Custom search function for the slash menu #488
Labels
Comments
I think this makes sense, and we need this for Mentions as well. |
@YousefED Need a bit of help and review on the PR. |
58 tasks
58 tasks
See https://www.blocknotejs.org/docs/ui-components/suggestion-menus for the
new docs :)
…On Tue, Mar 5, 2024 at 2:49 PM Matthew Lipski ***@***.***> wrote:
Closed #488 <#488> as
completed via #609 <#609>.
—
Reply to this email directly, view it on GitHub
<#488 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAC2BWIUKVVLG7DBBF6AOM3YWXENFAVCNFSM6AAAAABBAWAPG2VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSGAYTIMJZHE3DEMI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
I am using the editor for creating an editor for a niche. Where I need to be able to add tags, custom blocks etc. I want to use slash menu to execute commands for this. like /addgears or /xyz. Now there are about 200k items and I need a SlashMenu item in the list for each of them, to search and execute essentially the same function with a bit different arguments. I cannot store the data on the frontend. I have an api for searching.
I looked up features where I can modify the search function (give results based on api + default blocks)
Describe the solution you'd like
I would like a way to override the search blocks feature. Where I can take the query and return my own Slash menu item and execute it.
Describe alternatives you've considered
I tried mapping through the list in a json (dumb decision) and the app became a memory hog as it was 200k instances of the slash menu item + the execute function and no way to limit the number of results, rendereing everything at once.
The text was updated successfully, but these errors were encountered: