forked from mileszs/ack.vim
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding option to choose default result window
- Adding `g:ag_default_window_type` to choose to use the quickfix or location list - Adding `:LAg...` variants of commands that did not already have them - Adding `:QAg...` variants of all commands Previously, it was difficult to use the location list by default, since something like `command -nargs=* Ag LAg <args>` in the vimrc would get overridden by the `command!` in the plugin. In my opinion, the variants should eventually be removed, since I don't really see a reason why someone would want to use one list sometimes but the other sometimes. If people agree with me: - The `:LAg...` variants should be put on a deprecation path - The `:QAg...` variants should just be removed now
- Loading branch information
1 parent
994c27d
commit 1221c40
Showing
3 changed files
with
108 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
" NOTE: You must, of course, install ag / the_silver_searcher | ||
command! -bang -nargs=* -complete=file Ag call ag#Ag('grep<bang>',<q-args>) | ||
command! -bang -nargs=* -complete=file AgBuffer call ag#AgBuffer('grep<bang>',<q-args>) | ||
command! -bang -nargs=* -complete=file AgAdd call ag#Ag('grepadd<bang>', <q-args>) | ||
command! -bang -nargs=* -complete=file AgBuffer call ag#AgBuffer('grep<bang>',<q-args>) | ||
command! -bang -nargs=* -complete=file AgFromSearch call ag#AgFromSearch('grep<bang>', <q-args>) | ||
command! -bang -nargs=* -complete=file LAg call ag#Ag('lgrep<bang>', <q-args>) | ||
command! -bang -nargs=* -complete=file LAgBuffer call ag#AgBuffer('lgrep<bang>',<q-args>) | ||
command! -bang -nargs=* -complete=file LAgAdd call ag#Ag('lgrepadd<bang>', <q-args>) | ||
command! -bang -nargs=* -complete=file AgFile call ag#Ag('grep<bang> -g', <q-args>) | ||
command! -bang -nargs=* -complete=help AgHelp call ag#AgHelp('grep<bang>',<q-args>) | ||
command! -bang -nargs=* -complete=help LAgHelp call ag#AgHelp('lgrep<bang>',<q-args>) | ||
command! -bang -nargs=* -complete=file LAg call ag#Ag('grep<bang>', <q-args>, 'l') | ||
command! -bang -nargs=* -complete=file LAgAdd call ag#Ag('grepadd<bang>', <q-args>, 'l') | ||
command! -bang -nargs=* -complete=file LAgBuffer call ag#AgBuffer('grep<bang>',<q-args>, 'l') | ||
command! -bang -nargs=* -complete=file LAgFromSearch call ag#AgFromSearch('grep<bang>', <q-args>, 'l') | ||
command! -bang -nargs=* -complete=file LAgFile call ag#Ag('grep<bang> -g', <q-args>, 'l') | ||
command! -bang -nargs=* -complete=help LAgHelp call ag#AgHelp('grep<bang>',<q-args>, 'l') | ||
command! -bang -nargs=* -complete=file QAg call ag#Ag('grep<bang>', <q-args>, 'c') | ||
command! -bang -nargs=* -complete=file QAgAdd call ag#Ag('grepadd<bang>', <q-args>, 'c') | ||
command! -bang -nargs=* -complete=file QAgBuffer call ag#AgBuffer('grep<bang>',<q-args>, 'c') | ||
command! -bang -nargs=* -complete=file QAgFromSearch call ag#AgFromSearch('grep<bang>', <q-args>, 'c') | ||
command! -bang -nargs=* -complete=file QAgFile call ag#Ag('grep<bang> -g', <q-args>, 'c') | ||
command! -bang -nargs=* -complete=help QAgHelp call ag#AgHelp('grep<bang>',<q-args>, 'c') |