dajva / rg.el

Emacs search tool based on ripgrep
https://rgel.readthedocs.io
GNU General Public License v3.0
474 stars 39 forks source link

Error when spaces in `rg-executable` path #52

Closed Zulu-Inuoe closed 5 years ago

Zulu-Inuoe commented 5 years ago

Hello,

There seems to be an error invoking rg when there's a space in the path to the rg executable. The problem seems to be in rg-list-builtin-type-aliases when it executes via shell-command-to-string:

(concat (rg-executable) " --type-list")
; =>
"d:/Users/Wilfredo Velazquez/AppData/Local/scoop/shims/rg.exe --type-list"
(shell-command-to-string (concat (rg-executable) " --type-list"))
; =>
"'d:/Users/Wilfredo' is not recognized as an internal or external command,
operable program or batch file.
"