ag+ becomes search
This commit is contained in:
parent
c556b9d1ee
commit
1811d3351c
2 changed files with 5 additions and 1 deletions
|
|
@ -82,13 +82,13 @@ I spawn Acme by running `a` script.
|
||||||
Who is who in **bin** directory:
|
Who is who in **bin** directory:
|
||||||
|
|
||||||
- `a` start Acme
|
- `a` start Acme
|
||||||
- `ag+` search with The Silver Searcher
|
|
||||||
- `c+ SYMBOL` comment selection (python: `|c+` or `|c+ '#'`, erlang: `|c+ %`, js: `|c+ //`)
|
- `c+ SYMBOL` comment selection (python: `|c+` or `|c+ '#'`, erlang: `|c+ %`, js: `|c+ //`)
|
||||||
- `c- SYMBOL` uncomment selection
|
- `c- SYMBOL` uncomment selection
|
||||||
- `git+ MESSAGE` git: commit and push to master
|
- `git+ MESSAGE` git: commit and push to master
|
||||||
- `h+ SYMBOL` draw a pretty heading
|
- `h+ SYMBOL` draw a pretty heading
|
||||||
- `hg+ MESSAGE` hg: commit and push to master
|
- `hg+ MESSAGE` hg: commit and push to master
|
||||||
- `lower` convert selection to lowercase
|
- `lower` convert selection to lowercase
|
||||||
|
- `search` search with The Silver Searcher
|
||||||
- `s-` remove leading whitespace
|
- `s-` remove leading whitespace
|
||||||
- `s2t N_SPACES` spaces to tabs (default: 4 spaces to 1 tab)
|
- `s2t N_SPACES` spaces to tabs (default: 4 spaces to 1 tab)
|
||||||
- `t2s N_SPACES` tabs to spaces (default: 1 tab to 4 spaces)
|
- `t2s N_SPACES` tabs to spaces (default: 1 tab to 4 spaces)
|
||||||
|
|
|
||||||
|
|
@ -10,3 +10,7 @@ if [ ! "$(which ag)" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ag --nocolor --noheading "$@"
|
ag --nocolor --noheading "$@"
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo 'No results.'
|
||||||
|
fi
|
||||||
Loading…
Add table
Add a link
Reference in a new issue