Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for multiple grep options #378

Open
stevium opened this issue Mar 27, 2021 · 1 comment
Open

support for multiple grep options #378

stevium opened this issue Mar 27, 2021 · 1 comment

Comments

@stevium
Copy link

stevium commented Mar 27, 2021

  • Emacs version: 27.1 (spacemacs)
  • Operating system: 20.03.2 LTS
  • Search command: ag 2.2.0
  • Last value of 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 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...

@AtomicNess123
Copy link

Hi, I'm having the same problem, I would like to pass more than one option. Have you find a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants