Presently, to use helm's grep capability, one must invoke {M-x helm-find-files RET} and then use {C-u C-s}. I think there should be an additional command that immediately invokes helm grep on the current directory, as it would speed up things and be much simpler to learn.
If there is a simple way to code a function to do this with existing helm primitives, please show it. I have tried the following but it does not work. -- Thanks, Bob
(defun helm-grep ()
"Use helm to grep over the current directory; with prefix argument, recurse into subdirectories."
(interactive)
(require 'helm-files)
(helm-find-files-1 default-directory)
(sit-for 0.2)
;; Prefix arg makes grep recurse subdirectories
(let ((helm-current-prefix-arg (or current-prefix-arg '(4))))
(call-interactively #'helm-ff-run-grep))))
Similar to what was said in the first post, helm could use a better, simpler interface to grep, especially for new comers.Presently, to use helm's grep capability, one must invoke {M-x helm-find-files RET} and then use {C-u C-s}. I think there should be an additional command that immediately invokes helm grep on the current directory, as it would speed up things and be much simpler to learn.
If t
here is a simple way to code a function to do this with existing helm primitives, please show it.