Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
b3498d11
Commit
b3498d11
authored
May 06, 2019
by
div_bhasin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extracted angularjs to its own context for users who still use Angular <= 2
parent
bcd41006
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
README.md
plugins/frontend-search/README.md
+2
-1
_frontend-search.sh
plugins/frontend-search/_frontend-search.sh
+5
-1
frontend-search.plugin.zsh
plugins/frontend-search/frontend-search.plugin.zsh
+4
-3
No files found.
plugins/frontend-search/README.md
View file @
b3498d11
...
@@ -32,7 +32,8 @@ Available search contexts are:
...
@@ -32,7 +32,8 @@ Available search contexts are:
| context | URL |
| 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=`
|
| aurajs |
`http://aurajs.com/api/#stq=`
|
| bem |
`https://google.com/search?as_sitesearch=bem.info&as_q=`
|
| bem |
`https://google.com/search?as_sitesearch=bem.info&as_q=`
|
| bootsnipp |
`https://bootsnipp.com/search?q=`
|
| bootsnipp |
`https://bootsnipp.com/search?q=`
|
...
...
plugins/frontend-search/_frontend-search.sh
View file @
b3498d11
...
@@ -33,7 +33,8 @@ function _frontend() {
...
@@ -33,7 +33,8 @@ function _frontend() {
'unheap: Search in unheap website'
'unheap: Search in unheap website'
'bem: Search in BEM website'
'bem: Search in BEM website'
'smacss: Search in SMACSS 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'
'reactjs: Search in React website'
'emberjs: Search in Ember website'
'emberjs: Search in Ember website'
'stackoverflow: Search in StackOverflow website'
'stackoverflow: Search in StackOverflow website'
...
@@ -99,6 +100,9 @@ function _frontend() {
...
@@ -99,6 +100,9 @@ function _frontend() {
smacss
)
smacss
)
_describe
-t
points
"Warp points"
frontend_points
&&
ret
=
0
_describe
-t
points
"Warp points"
frontend_points
&&
ret
=
0
;;
;;
angular
)
_describe
-t
points
"Warp points"
frontend_points
&&
ret
=
0
;;
angularjs
)
angularjs
)
_describe
-t
points
"Warp points"
frontend_points
&&
ret
=
0
_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() {
...
@@ -26,7 +26,8 @@ function frontend() {
# define search context URLS
# define search context URLS
typeset
-A
urls
typeset
-A
urls
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='
aurajs
'http://aurajs.com/api/#stq='
bem
'https://google.com/search?as_sitesearch=bem.info&as_q='
bem
'https://google.com/search?as_sitesearch=bem.info&as_q='
bootsnipp
'https://bootsnipp.com/search?q='
bootsnipp
'https://bootsnipp.com/search?q='
...
@@ -57,7 +58,7 @@ function frontend() {
...
@@ -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
"%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
"and %Ucontext%u is one of the following:"
print
-P
""
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
" dartlang, emberjs, fontello, html5please, jquery, lodash, mdn, npmjs,"
print
-P
" qunit, reactjs, smacss, stackoverflow, unheap"
print
-P
" qunit, reactjs, smacss, stackoverflow, unheap"
print
-P
""
print
-P
""
...
@@ -73,7 +74,7 @@ function frontend() {
...
@@ -73,7 +74,7 @@ function frontend() {
echo
""
echo
""
echo
"Valid contexts are:"
echo
"Valid contexts are:"
echo
""
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
" dartlang, emberjs, fontello, html5please, jquery, lodash, mdn, npmjs, "
echo
" qunit, reactjs, smacss, stackoverflow, unheap"
echo
" qunit, reactjs, smacss, stackoverflow, unheap"
echo
""
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