From e9a3596007875da49bb2f3a399e68e488fa2a573 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20=C3=9Cnsalan?= Date: Wed, 24 Jul 2024 08:46:46 +0300 Subject: [PATCH] edited suggestions to work with names --- index.html | 71 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 40 insertions(+), 31 deletions(-) diff --git a/index.html b/index.html index a667cd5..3cce286 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ - + @@ -62,6 +62,23 @@ ['0:54323', { url: 'http://localhost:54323' }], ['0:54324', { url: 'http://localhost:54324' }], ]); + + // Usage of suggestions with names + + /* const COMMANDS = new Map([ + [ + 'g', + { + url: 'https://www.google.com/search?q={}', + searchTemplate: '/search?q={}', + suggestions: [ + { name: 'Google Search', url: 'https://www.google.com' }, + { name: 'Google Images', url: 'https://images.google.com' }, + { name: 'Google Maps', url: 'https://maps.google.com' }, + ], + }, + ], + ]); */