Use % as the prompt; allow for spaces

This commit is contained in:
Austin Chen 2022-09-10 19:22:57 -07:00
parent 3bfbc6a6ec
commit d4b2aac114

View File

@ -14,6 +14,8 @@ const beginsWith = (text: string, query: string) =>
// copied from https://tiptap.dev/api/nodes/mention#usage
export const mentionSuggestion: Suggestion = {
char: '%',
allowSpaces: true,
items: async ({ query }) =>
orderBy(
(await getCachedContracts()).filter((c) =>