I dug through the available helm commands again and found helm-projects-find-files
, which does exactly what I want.
I put this in ~/.spacemacs
into the function dotspacemacs/user-config
:
(setq-default helm-locate-project-list (list "~/projects"))
(spacemacs/set-leader-keys "fm" 'helm-projects-find-files))
For searching in those files, you can use spacemacs/helm-project-smart-do-search-in-dir
:
Put this somewhere in ~/.spacemacs
:
(defun mine/search-in-projects ()
"Search in all my projects (i.e. what is checked out in ~/projects)"
(interactive)
(spacemacs/helm-project-smart-do-search-in-dir "~/projects"))
And this in ~/.spacemacs
into the function dotspacemacs/user-config
:
(spacemacs/set-leader-keys "sm" 'mine/search-in-projects)
(I used SPC-sm
as key combination because the project name starts with an "m").