diff --git a/plugs/editor/complete.ts b/plugs/editor/complete.ts index baa9ccbd..e8c4adce 100644 --- a/plugs/editor/complete.ts +++ b/plugs/editor/complete.ts @@ -130,10 +130,14 @@ export async function pageComplete(completeEvent: CompleteEvent) { // A [[wikilink]] if (pageMeta.displayName) { const decoratedName = namePrefix + pageMeta.displayName; + let boost = new Date(pageMeta.lastModified).getTime(); + if (pageMeta._isAspiring) { + boost = -Infinity; + } completions.push({ label: pageMeta.displayName, displayLabel: decoratedName, - boost: new Date(pageMeta.lastModified).getTime(), + boost, apply: pageMeta.tag === "template" ? pageMeta.name : `${pageMeta.name}|${pageMeta.displayName}`, diff --git a/web/components/page_navigator.tsx b/web/components/page_navigator.tsx index 472a7b25..f9460bc3 100644 --- a/web/components/page_navigator.tsx +++ b/web/components/page_navigator.tsx @@ -41,7 +41,7 @@ export function PageNavigator({ orderId = -pageMeta.lastOpened; } // Or it's the currently open page - if (currentPage && currentPage === pageMeta.name) { + if (currentPage && currentPage === pageMeta.name || pageMeta._isAspiring) { // ... then we put it all the way to the end orderId = Infinity; }