1
0

Template completion for #inst

This commit is contained in:
Zef Hemel 2022-07-19 13:50:03 +02:00
parent 552c8afcc0
commit 93c3a34b47

View File

@ -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,
})),
};
}
}