Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
21b385e7
Unverified
Commit
21b385e7
authored
Sep 02, 2021
by
Marc Cornellà
Browse files
fix(frontend-search): fix codepen.io search (#10157)
Fixes #10157
parent
19032504
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/frontend-search/frontend-search.plugin.zsh
View file @
21b385e7
...
@@ -29,14 +29,10 @@ alias unheap='frontend unheap'
...
@@ -29,14 +29,10 @@ alias unheap='frontend unheap'
alias
vuejs
=
'frontend vuejs'
alias
vuejs
=
'frontend vuejs'
function
_frontend_fallback
()
{
function
_frontend_fallback
()
{
local
url
case
"
$FRONTEND_SEARCH_FALLBACK
"
in
if
[[
"
$FRONTEND_SEARCH_FALLBACK
"
==
duckduckgo
]]
;
then
duckduckgo
)
echo
"https://duckduckgo.com/?sites=
$1
&q="
;;
url
=
"https://duckduckgo.com/?sites=
$1
&q="
*
)
echo
"https://google.com/search?as_sitesearch=
$1
&as_q="
;;
else
esac
url
=
"https://google.com/search?as_sitesearch=
$1
&as_q="
fi
echo
"
$url
"
}
}
function
frontend
()
{
function
frontend
()
{
...
@@ -51,7 +47,7 @@ function frontend() {
...
@@ -51,7 +47,7 @@ function frontend() {
bootsnipp
'https://bootsnipp.com/search?q='
bootsnipp
'https://bootsnipp.com/search?q='
bundlephobia
'https://bundlephobia.com/result?p='
bundlephobia
'https://bundlephobia.com/result?p='
caniuse
'https://caniuse.com/#search='
caniuse
'https://caniuse.com/#search='
codepen
'https://codepen.io/search?q='
codepen
'https://codepen.io/search
/pens
?q='
compassdoc
'http://compass-style.org/search?q='
compassdoc
'http://compass-style.org/search?q='
cssflow
'http://www.cssflow.com/search?q='
cssflow
'http://www.cssflow.com/search?q='
dartlang
'https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart:'
dartlang
'https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart:'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment