From 715c189608d5fdf08f2158c94a7bb2df8c7498df Mon Sep 17 00:00:00 2001 From: Aria Date: Sun, 23 Dec 2018 16:53:45 +1100 Subject: [PATCH 1/2] Bind SPC-/-p to +helm/project-search if using helm --- modules/config/default/+evil-bindings.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/config/default/+evil-bindings.el b/modules/config/default/+evil-bindings.el index ae24eb88c..b0c4b2126 100644 --- a/modules/config/default/+evil-bindings.el +++ b/modules/config/default/+evil-bindings.el @@ -510,7 +510,9 @@ :desc "Jump to symbol" "i" #'imenu :desc "Jump to link" "l" #'ace-link :desc "Look up online" "o" #'+lookup/online-select - :desc "Search project" "p" #'+ivy/project-search) + :desc "Search project" "p" + (cond ((featurep! :completion ivy) #'+ivy/project-search) + ((featurep! :completion helm) #'+helm/project-search))) (:prefix ("]" . "next") :desc "Increase text size" "[" #'text-scale-decrease @@ -720,7 +722,7 @@ :desc "Find other file" "o" #'projectile-find-other-file :desc "Switch project" "p" #'projectile-switch-project :desc "Recent project files" "r" #'projectile-recentf - :desc "List project tasks" "t" #'+ivy/tasks + :desc "List project tasks" "t" #'+ivy/tasks ; TODO: Add +helm/tasks :desc "Invalidate cache" "x" #'projectile-invalidate-cache) (:prefix ("q" . "quit/restart") From 45bb7256cbea456e035ebf19b901744df1c0f0a0 Mon Sep 17 00:00:00 2001 From: Aria Date: Sun, 23 Dec 2018 18:43:16 +1100 Subject: [PATCH 2/2] Bind SPC-/-d to helm too --- modules/config/default/+evil-bindings.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/config/default/+evil-bindings.el b/modules/config/default/+evil-bindings.el index b0c4b2126..aa862020a 100644 --- a/modules/config/default/+evil-bindings.el +++ b/modules/config/default/+evil-bindings.el @@ -506,7 +506,9 @@ (:prefix ("/" . "search") :desc "Jump to symbol across buffers" "I" #'imenu-anywhere :desc "Search buffer" "b" #'swiper - :desc "Search current directory" "d" #'+ivy/project-search-from-cwd + :desc "Search current directory" "d" + (cond ((featurep! :completion helm) #'+helm/project-search-from-cwd) + ((featurep! :completion ivy) #'+ivy/project-search-from-cwd)) :desc "Jump to symbol" "i" #'imenu :desc "Jump to link" "l" #'ace-link :desc "Look up online" "o" #'+lookup/online-select