mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-02-24 18:49:38 +08:00
[Ag] Escape -
This commit is contained in:
@@ -389,7 +389,7 @@ endfunction
|
|||||||
function! fzf#vim#ag(query, ...)
|
function! fzf#vim#ag(query, ...)
|
||||||
call s:fzf({
|
call s:fzf({
|
||||||
\ 'source': printf('ag --nogroup --column --color "%s"',
|
\ 'source': printf('ag --nogroup --column --color "%s"',
|
||||||
\ escape(empty(a:query) ? '^(?=.)' : a:query, '"\')),
|
\ escape(empty(a:query) ? '^(?=.)' : a:query, '"\-')),
|
||||||
\ 'sink*': s:function('s:ag_handler'),
|
\ 'sink*': s:function('s:ag_handler'),
|
||||||
\ 'options': '--ansi --delimiter : --nth 4.. --prompt "Ag> " '.
|
\ 'options': '--ansi --delimiter : --nth 4.. --prompt "Ag> " '.
|
||||||
\ '--multi --bind ctrl-a:select-all,ctrl-d:deselect-all '.
|
\ '--multi --bind ctrl-a:select-all,ctrl-d:deselect-all '.
|
||||||
|
|||||||
Reference in New Issue
Block a user