diff options
author | Marc Cornellà <marc.cornella@live.com> | 2019-05-06 19:09:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-06 19:09:51 +0200 |
commit | 63b8d652f251f2b7e22ee80dbeaba8ecf6b9b535 (patch) | |
tree | e79e67cc0d5bbea91cda1deddf4c932b6907eab7 | |
parent | b3498d110e4dca90f00ce325b4f48835b27ed5da (diff) | |
download | zsh-63b8d652f251f2b7e22ee80dbeaba8ecf6b9b535.tar.gz zsh-63b8d652f251f2b7e22ee80dbeaba8ecf6b9b535.tar.bz2 zsh-63b8d652f251f2b7e22ee80dbeaba8ecf6b9b535.zip |
Add small polishing touches
-rw-r--r-- | plugins/frontend-search/frontend-search.plugin.zsh | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/plugins/frontend-search/frontend-search.plugin.zsh b/plugins/frontend-search/frontend-search.plugin.zsh index c5f5ea7a9..bef5992a3 100644 --- a/plugins/frontend-search/frontend-search.plugin.zsh +++ b/plugins/frontend-search/frontend-search.plugin.zsh @@ -1,3 +1,4 @@ +alias angular='frontend angular' alias angularjs='frontend angularjs' alias aurajs='frontend aurajs' alias bem='frontend bem' @@ -58,9 +59,9 @@ 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 (>= 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 " angular (>= 2.0), angularjs (1.x), aurajs, bem, bootsnipp, caniuse, codepen," + print -P " compassdoc, cssflow, dartlang, emberjs, fontello, html5please, jquery," + print -P " lodash, mdn, npmjs, qunit, reactjs, smacss, stackoverflow, unheap" print -P "" print -P "For example: frontend npmjs mocha (or just: npmjs mocha)." print -P "" @@ -74,15 +75,15 @@ function frontend() { echo "" echo "Valid contexts are:" echo "" - 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 " angular (>= 2.0), angularjs (1.x), aurajs, bem, bootsnipp, caniuse, codepen," + echo " compassdoc, cssflow, dartlang, emberjs, fontello, html5please, jquery," + echo " lodash, mdn, npmjs, qunit, reactjs, smacss, stackoverflow, unheap" echo "" return 1 fi # build search url: - # join arguments passed with '+', then append to search context URL + # join arguments passed with '%20', then append to search context URL # TODO substitute for proper urlencode method url="${urls[$1]}${(j:%20:)@[2,-1]}" |