Skip to content

Custom Search for Slash Menu - #495

Closed
sahilpohare wants to merge 17 commits into
TypeCellOS:mainfrom
sahilpohare:main
Closed

Custom Search for Slash Menu#495
sahilpohare wants to merge 17 commits into
TypeCellOS:mainfrom
sahilpohare:main

Conversation

@sahilpohare

@sahilpohare sahilpohare commented Dec 29, 2023

Copy link
Copy Markdown

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()}/>

@vercel

vercel Bot commented Dec 29, 2023

Copy link
Copy Markdown

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

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Dec 29, 2023

Copy link
Copy Markdown

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

sahilpohare commented Dec 30, 2023

Copy link
Copy Markdown
Author

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
Copy Markdown
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

YousefED commented Mar 5, 2024 via email

Copy link
Copy Markdown
Collaborator

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