I recently switched from ivy to helm in spacemacs as my project search/management package.
In ivy, there is a keybinding for
SPC p SPC that does a search for files in the project (by file name). There is a very similar method and binding for helm:
helm-projectile-find-file, which is bound to
SPC p f. I want to also bind this to
SPC p SPC, like in ivy.
My attempt at adding the keybinding, distilled from my .spacemacs is this:
(defun dotspacemacs/user-config () "add user config here" ; add ivy-like shortcut (spacemacs/set-leader-keys-for-minor-mode 'projectile-mode (kbd "p SPC") "helm-projectile-find-file"))
Unfortunately, when I attempt to invoke the keybinding, it does not exist.
Additional Context / Things I have tried.
I may be binding in the wrong minor mode. I tried it on
'helm-mode at first and that caused errors on startup.
'projectile-mode seems kind of wrong/weird, but I couldn't find a helm + projectile mode to bind on.
The key sequence in my code may be wrong. The spacemacs docs say "use a macro like
kbd to determine the key sequence" so that's what I'm trying to do here.
(kbd "p SPC") evaluates to
("p "). I have also tried using "p SPC" directly, with no call to
kbd, with no luck.