dajva / rg.el

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

add rg-dwim-regexp #28

Closed zonotope closed 6 years ago

zonotope commented 6 years ago

Add a new function, rg-dwim-regexp to search for a user provided pattern using the default type alias. rg-dwim-regexp is like a cross between rg-project and rg-dwim in that it skips the files confirmation but still lets you enter your own pattern.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.5%) to 77.957% when pulling e0ba1ba1d3bf68f44e0aa8e315edc64c5bf423a9 on zonotope:master into 68984092d0e0725057e7b67ba32016903170f189 on dajva:master.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.5%) to 77.957% when pulling e0ba1ba1d3bf68f44e0aa8e315edc64c5bf423a9 on zonotope:master into 68984092d0e0725057e7b67ba32016903170f189 on dajva:master.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.5%) to 77.957% when pulling e0ba1ba1d3bf68f44e0aa8e315edc64c5bf423a9 on zonotope:master into 68984092d0e0725057e7b67ba32016903170f189 on dajva:master.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.5%) to 77.957% when pulling 9ca4eda6dac82f327a48e190b172f1d768c106a0 on zonotope:master into 68984092d0e0725057e7b67ba32016903170f189 on dajva:master.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.5%) to 77.957% when pulling 9ca4eda6dac82f327a48e190b172f1d768c106a0 on zonotope:master into 68984092d0e0725057e7b67ba32016903170f189 on dajva:master.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.5%) to 77.957% when pulling 9ca4eda6dac82f327a48e190b172f1d768c106a0 on zonotope:master into 68984092d0e0725057e7b67ba32016903170f189 on dajva:master.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.5%) to 77.957% when pulling 9ca4eda6dac82f327a48e190b172f1d768c106a0 on zonotope:master into 68984092d0e0725057e7b67ba32016903170f189 on dajva:master.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+4.3%) to 82.707% when pulling 64d7bf0042f0cec92b55a75d741197964663aa66 on zonotope:master into 68984092d0e0725057e7b67ba32016903170f189 on dajva:master.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+4.0%) to 82.368% when pulling 9a24e3a333ee1318d4f0165e154d8dae41d32a9c on zonotope:master into 68984092d0e0725057e7b67ba32016903170f189 on dajva:master.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+4.0%) to 82.368% when pulling 9a24e3a333ee1318d4f0165e154d8dae41d32a9c on zonotope:master into 68984092d0e0725057e7b67ba32016903170f189 on dajva:master.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+6.1%) to 84.541% when pulling a515fcf44959d8590d0d2038377877968794dc84 on zonotope:master into 68984092d0e0725057e7b67ba32016903170f189 on dajva:master.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+6.1%) to 84.541% when pulling a515fcf44959d8590d0d2038377877968794dc84 on zonotope:master into 68984092d0e0725057e7b67ba32016903170f189 on dajva:master.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+6.1%) to 84.541% when pulling a515fcf44959d8590d0d2038377877968794dc84 on zonotope:master into 68984092d0e0725057e7b67ba32016903170f189 on dajva:master.

zonotope commented 6 years ago

@dajva I'm not sure what to make of the CI failure. It looks like the style linter doesn't load the definitions of any of the functions referenced in the rg-define-search macro. I can't tell what the problem could be from looking through style-check.el, all the tests pass, and I can successfully load rg.el, define a custom search in an emacs instance, and the functions work as I expect. Do you know what the problem could be?

dajva commented 6 years ago

Regarding the CI failure I think you need to wrap the defuns used from the macro in eval-when-compile to make those available during compilation (which is what happens in the style-check). At least that works locally for me.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+4.7%) to 83.146% when pulling c558a147d2169d288dbcf313b81dd054cb2b33ce on zonotope:master into 68984092d0e0725057e7b67ba32016903170f189 on dajva:master.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+4.7%) to 83.146% when pulling c558a147d2169d288dbcf313b81dd054cb2b33ce on zonotope:master into 68984092d0e0725057e7b67ba32016903170f189 on dajva:master.

dajva commented 6 years ago

Thanks a lot for your effort on this. Very nice implementation and well structured code. This will greatly improve the usability of this package.

zonotope commented 6 years ago

thank you for writing this package in the first place! i'm glad i could help.