I want to wrap the helm-do-ag in another function to search in a specific dir. The following is the description of helm-do-ag.
helm-do-ag is an interactive Lisp closure in `helm-ag.el'. (helm-do-ag &optional BASEDIR TARGETS)
I have the following function (minimal working example):
(defun helm-do-ag-project () "ag the string in the given project" (interactive) (let ((helm-ag-command-option (concat helm-ag-command-option " -G v$ -f --verilog "))) (helm-do-ag (concat "d:/Projects/ProjectName/workarea/module_name/hdl/rtl"))) )
But, the results it returns are:
rtl/filename.v: ...text.... rtl/mod1/filename1.v ....text....
The problem is the result also has the "rtl"(rtl is the dir provided as part of the BASEDIR. Hence I am not able to open the file using persistent action. Helm tries to look for
and helm is unable to open the file, since path is not correct.