diff --git a/packages/plugs/query/complete.ts b/packages/plugs/query/complete.ts index 0c58b92..47ceb32 100644 --- a/packages/plugs/query/complete.ts +++ b/packages/plugs/query/complete.ts @@ -29,4 +29,15 @@ export async function queryComplete() { })), }; } + + prefix = await matchBefore('#inst "[^"]*'); + if (prefix) { + let allPages = await listPages(); + return { + from: prefix.from + '#inst "'.length, + options: allPages.map((pageMeta) => ({ + label: pageMeta.name, + })), + }; + } }