fix rg ignore option in non git projects
- Fix #46 - according to rg's manual, files for `--ignore-file FILE ...` should be matched relative to the current working directory - while `--glob` can accept files that does not exist in current project (Thanks to @chaoyi)
This commit is contained in:
parent
aefd25c747
commit
07ba798d76
1 changed files with 1 additions and 1 deletions
|
|
@ -254,7 +254,7 @@ BUFFER may be a string or nil."
|
||||||
(options
|
(options
|
||||||
(concat options " "
|
(concat options " "
|
||||||
(mapconcat (lambda (i)
|
(mapconcat (lambda (i)
|
||||||
(concat "--ignore-file " (shell-quote-argument i)))
|
(concat "--glob " (shell-quote-argument (concat "!" i))))
|
||||||
ignored
|
ignored
|
||||||
" "))))
|
" "))))
|
||||||
(counsel-rg nil
|
(counsel-rg nil
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue