mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-06 20:54:28 +08:00
[Ag] Drop --nth to make search faster
This commit is contained in:
@@ -620,11 +620,10 @@ function! fzf#vim#grep(grep_command, with_column, ...)
|
|||||||
let words = empty(words) ? ['grep'] : words
|
let words = empty(words) ? ['grep'] : words
|
||||||
let name = join(words, '-')
|
let name = join(words, '-')
|
||||||
let capname = join(map(words, 'toupper(v:val[0]).v:val[1:]'), '')
|
let capname = join(map(words, 'toupper(v:val[0]).v:val[1:]'), '')
|
||||||
let textcol = a:with_column ? '4..' : '3..'
|
|
||||||
let opts = {
|
let opts = {
|
||||||
\ 'source': a:grep_command,
|
\ 'source': a:grep_command,
|
||||||
\ 'column': a:with_column,
|
\ 'column': a:with_column,
|
||||||
\ 'options': '--ansi --delimiter : --nth '.textcol.',.. --prompt "'.capname.'> " '.
|
\ 'options': '--ansi --prompt "'.capname.'> " '.
|
||||||
\ '--multi --bind alt-a:select-all,alt-d:deselect-all '.
|
\ '--multi --bind alt-a:select-all,alt-d:deselect-all '.
|
||||||
\ '--color hl:68,hl+:110'
|
\ '--color hl:68,hl+:110'
|
||||||
\}
|
\}
|
||||||
|
|||||||
Reference in New Issue
Block a user