diff --git a/README.md b/README.md index b87e748..0e0e063 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Inspired by [/r/startpages](https://www.reddit.com/r/startpages)—the idea is t ## Usage -To go to a site, enter the corresponding key. To view the available commands, enter a `?`. If your input doesn't match any of the commands, a generic google search will be triggered. +To go to a site, enter the corresponding key. To view the available commands, press `enter`. If your input doesn't match any of the commands, a generic google search will be triggered. ## Examples diff --git a/index.html b/index.html index dbd0797..b13a3f3 100644 --- a/index.html +++ b/index.html @@ -212,11 +212,11 @@ ] }, ], - // if none of the keys are matched, this is used for searching + // if none of the keys are matched, this is used for searching. defaultSearch: 'https://www.google.com/search?q=', - // the delimiter between the key and your search query - // e.g. to search GitHub for potatoes you'd type "g:potatoes" + // the delimiter between the key and your search query. + // e.g. to search GitHub for potatoes you'd type "g:potatoes". searchDelimiter: ':', // set to true to instantly redirect when a key is matched. @@ -224,11 +224,11 @@ // prevent unwanted redirects. instantRedirect: false, - // the delimiter between the hours and minutes in the clock + // the delimiter between the hours and minutes in the clock. clockDelimiter: ' ', // when the input matches this regular expression, you will - // be redirected directly to the input url + // be redirected directly to the input url. urlRegex: /^(?:(http|https)?:\/\/)?(?:[\w-]+\.)+([a-z]|[A-Z]|[0-9]){2,6}/i, // if "urlRegex" matches but this doesn't, "http://" will be @@ -326,7 +326,6 @@ if (!q) { Help.toggle(); - searchInput.value = ''; return false; }