Run helm-do-grep-ag, try to pass more than one ag option, observe empty results.
For example, when I type -Gp$ --ignore=*cbp some_pattern I would expect it includes *cpp files. It looks like it's the same with any other combination of options. For example -i in combination with --ignore returns empty results...
27.1 (spacemacs)
20.03.2 LTS
ag 2.2.0
helm-ag--last-command
:("ag" "--nocolor" "--nogroup" "--ignore" "*.cpp" "-G" "Makefile" "--ignore=.#*" "--ignore=*.hi" "--ignore=*.o" "--ignore=*~" "--ignore=*.bin" "--ignore=*.lbin" "--ignore=*.so" "--ignore=*.a" "--ignore=*.ln" "--ignore=*.blg" "--ignore=*.bbl" "--ignore=*.elc" "--ignore=*.lof" "--ignore=*.glo" "--ignore=*.idx" "--ignore=*.lot" "--ignore=*.fmt" "--ignore=*.tfm" "--ignore=*.class" "--ignore=*.fas" "--ignore=*.lib" "--ignore=*.mem" "--ignore=*.x86f" "--ignore=*.sparcf" "--ignore=*.dfsl" "--ignore=*.pfsl" "--ignore=*.d64fsl" "--ignore=*.p64fsl" "--ignore=*.lx64fsl" "--ignore=*.lx32fsl" "--ignore=*.dx64fsl" "--ignore=*.dx32fsl" "--ignore=*.fx64fsl" "--ignore=*.fx32fsl" "--ignore=*.sx64fsl" "--ignore=*.sx32fsl" "--ignore=*.wx64fsl" "--ignore=*.wx32fsl" "--ignore=*.fasl" "--ignore=*.ufsl" "--ignore=*.fsl" "--ignore=*.dxl" "--ignore=*.lo" "--ignore=*.la" "--ignore=*.gmo" "--ignore=*.mo" "--ignore=*.toc" "--ignore=*.aux" "--ignore=*.cp" "--ignore=*.fn" "--ignore=*.ky" "--ignore=*.pg" "--ignore=*.tp" "--ignore=*.vr" "--ignore=*.cps" "--ignore=*.fns" "--ignore=*.kys" "--ignore=*.pgs" "--ignore=*.tps" "--ignore=*.vrs" "--ignore=*.pyc" "--ignore=*.pyo" "--ignore=SCCS" "--ignore=RCS" "--ignore=CVS" "--ignore=MCVS" "--ignore=.src" "--ignore=.svn" "--ignore=.git" "--ignore=.hg" "--ignore=.bzr" "--ignore=_MTN" "--ignore=_darcs" "--ignore={arch}" "make")
Actual behavior
It looks like
helm-do-grep-ag
does not support multiple command line options.Expected behavior
I would expect that I can pass as many options as
ag
supports, as long as I follow the rules from docs, that search command is in following format:-<short_option_letter><option_value> --<long_option_name>=<option_value> <search_pattern>
Steps to reproduce
Run
helm-do-grep-ag
, try to pass more than oneag
option, observe empty results.For example, when I type
-Gp$ --ignore=*cbp some_pattern
I would expect it includes*cpp
files. It looks like it's the same with any other combination of options. For example-i
in combination with--ignore
returns empty results...