dajva / rg.el

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

rg.el not works under fish shell #143

Closed kalxd closed 2 years ago

kalxd commented 2 years ago

Hi all.

I installed latest rg.el and tried a search:

-*- mode: rg; default-directory: "~/Code/Haskell/sample/" -*-
rg started at Sun Jul 17 09:09:19

/usr/bin/rg --color=always --colors=match:fg:red --colors=path:fg:magenta --colors=line:fg:green --colors=column:none -n --column --type-add=gyp\:\*.gyp --type-add=gyp\:\*.gypi --glob !TAGS --glob !^\.idea$ --glob !^\.vscode$ --glob !^\.ensime_cache$ --glob !^\.eunit$ --glob !^\.git$ --glob !^\.hg$ --glob !^\.fslckout$ --glob !^_FOSSIL_$ --glob !^\.bzr$ --glob !^_darcs$ --glob !^\.pijul$ --glob !^\.tox$ --glob !^\.svn$ --glob !^\.stack-work$ --glob !^\.ccls-cache$ --glob !^\.cache$ --glob !^\.clangd$ --heading --no-config --type-add=custom\:\* --fixed-strings --type=custom -e Zero

fish: Expected a variable name after this $.
/usr/bin/rg --color=always --colors=match:fg:red --colors=path:fg:magenta --colors=line:fg:green --colors=column:none -n --column --type-add=gyp\:\*.gyp --type-add=gyp\:\*.gypi --glob !TAGS --glob !^\.idea$ --glob !^\.vscode$ --glob !^\.ensime_cache$ --glob !^\.eunit$ --glob !^\.git$ --glob !^\.hg$ --glob !^\.fslckout$ --glob !^_FOSSIL_$ --glob !^\.bzr$ --glob !^_darcs$ --glob !^\.pijul$ --glob !^\.tox$ --glob !^\.svn$ --glob !^\.stack-work$ --glob !^\.ccls-cache$ --glob !^\.cache$ --glob !^\.clangd$ --heading --no-config --type-add=custom\:\* --fixed-strings --type=custom -e Zero
                                                                                                                                                                                                             ^

rg finished (0 matches found) at Sun Jul 17 09:09:19

it seems fish couldn't run this command.

$ echo $SHELL
/usr/bin/fish

$ /usr/bin/rg --color=always --colors=match:fg:red --colors=path:fg:magenta --colors=line:fg:green --colors=column:none -n --column --type-add=gyp\:\*.gyp --type-add=gyp\:\*.gypi --glob !TAGS --glob !^\.idea$ --glob !^\.vscode$ --glob !^\.ensime_cache$ --glob !^\.eunit$ --glob !^\.git$ --glob !^\.hg$ --glob !^\.fslckout$ --glob !^_FOSSIL_$ --glob !^\.bzr$ --glob !^_darcs$ --glob !^\.pijul$ --glob !^\.tox$ --glob !^\.svn$ --glob !^\.stack-work$ --glob !^\.ccls-cache$ --glob !^\.cache$ --glob !^\.clangd$ --heading --no-config --type-add=custom\:\* --fixed-strings --type=custom -e Zero
fish: Expected a variable name after this $.
/usr/bin/rg --color=always --colors=match:fg:red --colors=path:fg:magenta --colors=line:fg:green --colors=column:none -n --column --type-add=gyp\:\*.gyp --type-add=gyp\:\*.gypi --glob !TAGS --glob !^\.idea$ --glob !^\.vscode$ --glob !^\.ensime_cache$ --glob !^\.eunit$ --glob !^\.git$ --glob !^\.hg$ --glob !^\.fslckout$ --glob !^_FOSSIL_$ --glob !^\.bzr$ --glob !^_darcs$ --glob !^\.pijul$ --glob !^\.tox$ --glob !^\.svn$ --glob !^\.stack-work$ --glob !^\.ccls-cache$ --glob !^\.cache$ --glob !^\.clangd$ --heading --no-config --type-add=custom\:\* --fixed-strings --type=custom -e Zero
                                                                                                                                                                                                             ^

I had trid to find a way to change the shell from confgiuration, but I got nothing.

does anyone has good ideas? thanks.

kalxd commented 2 years ago

sorry, it's the issue of projectile.el.