Wilfred / deadgrep

fast, friendly searching with ripgrep and Emacs
713 stars 46 forks source link

Feature idea: ability to identify several file types #129

Open pierre-rouleau opened 1 year ago

pierre-rouleau commented 1 year ago

Ripgrep accepts several --type command line arguments. It would be nice to be able to build a rg command line that support specifying a search in multiple file types.

For example, as C++ projects often include C code, so being able to select both c and cpp file types would help. Adding makefile to the list can also be useful.

If adding the ability to define a button with a list/set of file types, then perhaps adding the ability to specify the file selection arguments manually as a string would allow creating searches that can not (AFAIK) be specified with the buttons.

By the way, deadgrep is fantastic and super useful!!

gvol commented 1 year ago

@pierre-rouleau, does https://github.com/Wilfred/deadgrep/pull/93 do something like what you want?