From 983a19fa6294ec6b9cb1d1eed1e002789c8d831e Mon Sep 17 00:00:00 2001 From: JSON <32702660+JaysonLovesJesus@users.noreply.github.com> Date: Wed, 21 Jan 2026 12:39:07 -0500 Subject: [PATCH 1/2] Update shared-component-logic.js Instant suggestions behave like a regular address bar: suggested second or first when contains a space. --- spotlight/shared/shared-component-logic.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/spotlight/shared/shared-component-logic.js b/spotlight/shared/shared-component-logic.js index 4cc40fc..405ee95 100644 --- a/spotlight/shared/shared-component-logic.js +++ b/spotlight/shared/shared-component-logic.js @@ -25,11 +25,6 @@ export class SharedSpotlightLogic { static combineResults(instantSuggestion, asyncSuggestions) { const combined = []; - // Add instant suggestion first (if exists) - if (instantSuggestion) { - combined.push(instantSuggestion); - } - // Add async suggestions, filtering out duplicates of the instant suggestion for (const asyncResult of asyncSuggestions) { const isDuplicate = instantSuggestion && SpotlightUtils.areResultsDuplicate(instantSuggestion, asyncResult); @@ -38,6 +33,12 @@ export class SharedSpotlightLogic { } } + // Add instant suggestion second (or first if contains space) (if exists) + if (instantSuggestion) { + const hasSpace = instantSuggestion.metadata?.query?.includes(" "); + combined.splice(hasSpace ? 0 : 1, 0, instantSuggestion); + } + return combined; } @@ -181,4 +182,4 @@ export class SharedSpotlightLogic { } }; } -} \ No newline at end of file +} From 9cf9bcaa189d166fd4f753d4afc7704d4d41dc51 Mon Sep 17 00:00:00 2001 From: JSON <32702660+JaysonLovesJesus@users.noreply.github.com> Date: Wed, 21 Jan 2026 14:13:08 -0500 Subject: [PATCH 2/2] Update shared-component-logic.js Instant suggestion is only second when the query is only letters. --- spotlight/shared/shared-component-logic.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spotlight/shared/shared-component-logic.js b/spotlight/shared/shared-component-logic.js index 405ee95..c5e02af 100644 --- a/spotlight/shared/shared-component-logic.js +++ b/spotlight/shared/shared-component-logic.js @@ -35,8 +35,8 @@ export class SharedSpotlightLogic { // Add instant suggestion second (or first if contains space) (if exists) if (instantSuggestion) { - const hasSpace = instantSuggestion.metadata?.query?.includes(" "); - combined.splice(hasSpace ? 0 : 1, 0, instantSuggestion); + const first = instantSuggestion.metadata?.query?.match(/[^A-z]/); + combined.splice(first ? 0 : 1, 0, instantSuggestion); } return combined;