helm-codesearch
is also helpful
(projectile-project-root)
resolves to my home directory from some Clojure projects (both lein and boot projects are affected); I've taken a look at the source to that function but the cache throws me off the trail -- I can't see why it's jumping up from my actual project root to my home directory
src
path differently than my gradle project.
projectile-mode
(which I have to do in each individual file) then C-c p h
, it shows me all the files correctly scoped to the project dir, but C-c p p
shows me no projects, and the projectile-bookmarks file is empty.
(defun open-matching-files-goto-line(dir file matcher lineno)
"Open file if it matches, goto lineno"
(when (string-equal file matcher)
(find-file (concat dir file))
(goto-line (string-to-number lineno))
)
t
)
(defun find-file-line-in-project (fileline)
"Find file line in project"
(interactive "sFind file:line in project: ")
(let (pt)
(walk-path
basedir
(lambda (dir file) (open-matching-files-goto-line
dir
file
(elt (split-string fileline ":") 0)
(elt (split-string fileline ":") 1)
)))))