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

Would be nice if DWIM modes prompt for search string if no word at point #151

Closed garyo closed 1 year ago

garyo commented 1 year ago

I use the DWIM modes often. But I sometimes want to search for something in the current dir, but it's not the thing under point. This means I have to use the full C-c s r. It might be nice if there is nothing found under point in a DWIM mode, instead of returning "Empty string: no search done", prompt for something to search for. After all, "DWIM" is in the name. :-) I know I can define a different custom search key, and I've done that, but for me at least it would be nice to just use the same C-c s c in both cases.

dajva commented 1 year ago

Agreed, seems useful. Thanks for the suggestion.

dajva commented 1 year ago

Implemented. Please try it out on master.

garyo commented 1 year ago

Works fine! Thx!