Skip to content

Conversation

sahilpohare
Copy link

@sahilpohare sahilpohare commented Dec 29, 2023

Working on custom search function for slash menu
This is a in response to Issue #488
impl

class CustomQueryManager extends SlashMenuQuery {
         async query(query : string, items) {}
         async execute({item, editor}) {}
}
<Blocknote slashMenuQueryManager={new CustomQueryManager()}/>

Copy link

vercel bot commented Dec 29, 2023

@sahilpohare is attempting to deploy a commit to the TypeCell Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Dec 29, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview Jan 2, 2024 9:30am

@sahilpohare
Copy link
Author

sahilpohare commented Dec 30, 2023

Still have some code to figure out. For example the notFoundCount is updated in the apply function but we no longer have access to the items array length as it is a promise and I am awaiting it in the update function.

Would appriciate help on this.
@YousefED

@sahilpohare
Copy link
Author

This also adds the ability to load items in the slash menu dynamically

NOTE: Have removed the not found count for now. It was causing too many issues with the suggestions.
@YousefED
Copy link
Collaborator

YousefED commented Mar 5, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants