completion/ivy: escape regexp for literal ag searches
This commit is contained in:
parent
6c10567e9e
commit
f9ddc53bfc
1 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,8 @@ DIR specifies the default-directory from which ag is run."
|
||||||
(if regex-p (rxt-quote-pcre str) str))))
|
(if regex-p (rxt-quote-pcre str) str))))
|
||||||
+ivy--ag-last-search)))
|
+ivy--ag-last-search)))
|
||||||
(setq +ivy--ag-last-search search)
|
(setq +ivy--ag-last-search search)
|
||||||
(counsel-ag search (or dir (doom-project-root))
|
(counsel-ag (if regex-p search (rxt-quote-pcre search))
|
||||||
|
(or dir (doom-project-root))
|
||||||
(concat "--nocolor --nogroup" (if regex-p " -Q")))))
|
(concat "--nocolor --nogroup" (if regex-p " -Q")))))
|
||||||
|
|
||||||
;;;###autoload (autoload '+ivy:ag-search-cwd "completion/ivy/autoload/evil" nil t)
|
;;;###autoload (autoload '+ivy:ag-search-cwd "completion/ivy/autoload/evil" nil t)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue