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
b3498d11
Commit
b3498d11
authored
May 05, 2019
by
div_bhasin
Browse files
Extracted angularjs to its own context for users who still use Angular <= 2
parent
bcd41006
Changes
3
Hide whitespace changes
Inline
Side-by-side
plugins/frontend-search/README.md
View file @
b3498d11
...
...
@@ -32,7 +32,8 @@ Available search contexts are:
| context | URL |
|---------------|--------------------------------------------------------------------------|
| angularjs |
`https://angular.io/?search=`
|
| angular(>=2.0)|
`https://angular.io/?search=`
|
| angularjs(1.x)|
`https://google.com/search?as_sitesearch=angularjs.org&as_q=`
| aurajs |
`http://aurajs.com/api/#stq=`
|
| bem |
`https://google.com/search?as_sitesearch=bem.info&as_q=`
|
| bootsnipp |
`https://bootsnipp.com/search?q=`
|
...
...
plugins/frontend-search/_frontend-search.sh
View file @
b3498d11
...
...
@@ -33,7 +33,8 @@ function _frontend() {
'unheap: Search in unheap website'
'bem: Search in BEM website'
'smacss: Search in SMACSS website'
'angularjs: Search in Angular website'
'angular: Search in Angular website for Angular 2.x'
'angularjs: Search in Angular website for Angular 1.x'
'reactjs: Search in React website'
'emberjs: Search in Ember website'
'stackoverflow: Search in StackOverflow website'
...
...
@@ -99,6 +100,9 @@ function _frontend() {
smacss
)
_describe
-t
points
"Warp points"
frontend_points
&&
ret
=
0
;;
angular
)
_describe
-t
points
"Warp points"
frontend_points
&&
ret
=
0
;;
angularjs
)
_describe
-t
points
"Warp points"
frontend_points
&&
ret
=
0
;;
...
...
plugins/frontend-search/frontend-search.plugin.zsh
View file @
b3498d11
...
...
@@ -26,7 +26,8 @@ function frontend() {
# define search context URLS
typeset
-A
urls
urls
=(
angularjs
'https://angular.io/?search='
angular
'https://angular.io/?search='
angularjs
'https://google.com/search?as_sitesearch=angularjs.org&as_q='
aurajs
'http://aurajs.com/api/#stq='
bem
'https://google.com/search?as_sitesearch=bem.info&as_q='
bootsnipp
'https://bootsnipp.com/search?q='
...
...
@@ -57,7 +58,7 @@ function frontend() {
print
-P
"%Uterm%u and what follows is what will be searched for in the %Ucontext%u website,"
print
-P
"and %Ucontext%u is one of the following:"
print
-P
""
print
-P
" angular
js
, aurajs, bem, bootsnipp, caniuse, codepen, compassdoc, cssflow,"
print
-P
" angular
(>= 2.0), angularjs (1.x)
, aurajs, bem, bootsnipp, caniuse, codepen, compassdoc, cssflow,"
print
-P
" dartlang, emberjs, fontello, html5please, jquery, lodash, mdn, npmjs,"
print
-P
" qunit, reactjs, smacss, stackoverflow, unheap"
print
-P
""
...
...
@@ -73,7 +74,7 @@ function frontend() {
echo
""
echo
"Valid contexts are:"
echo
""
echo
" angular
js
, aurajs, bem, bootsnipp, caniuse, codepen, compassdoc, cssflow, "
echo
" angular
(>= 2.0), angularjs (1.x)
, aurajs, bem, bootsnipp, caniuse, codepen, compassdoc, cssflow, "
echo
" dartlang, emberjs, fontello, html5please, jquery, lodash, mdn, npmjs, "
echo
" qunit, reactjs, smacss, stackoverflow, unheap"
echo
""
...
...
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