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

Is there way to set default searching directory dynamically? #171

Open Insem opened 1 month ago

Insem commented 1 month ago

Hello, I want to change default directory for rg outside of Emacs. I thought I can do it through rg-rerun-change-dir but it doesn't take arguments and set nil by default. Thanks

dajva commented 1 month ago

(setq default-directory "/my/path") with the rg-result buffer as the current?