dajva / rg.el

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

Is there a way to not prompt for file type all the time? #77

Closed garyo closed 4 years ago

garyo commented 4 years ago

I almost always want to search all (non-ignored) files. Is there an rg command to skip the file-type prompt and use a default set?

dajva commented 4 years ago

You can create your own search frontend with rg-define-search:

(rg-define-search rg-everything
  "Search everything."
  :files "everything"
  :confirm prefix
  :menu ("Search" "e" "Everything")

See https://rgel.readthedocs.io/en/latest/configuration.html#function-rg-define-search and https://rgel.readthedocs.io/en/latest/usage.html#file-type-aliases for more info.