From decc1c58c1b9da674c259826b8ad439d5ef6c04b Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 10 May 2020 20:29:06 +0100 Subject: [PATCH] fix(navigation): Improve helm-ag keybindings Have both `C-c C-'` and `C-c '` bound to `helm-do-ag-project-root`, so it can be triggered from a terminal. As `C-'` cannot be sent to emacs due to limitations of terminal emulators. Also move `helm-do-ag` from `C-c C-s` to ` a`, now that the `helm-command-map` can reliably be used. This effectively means you trigger `helm-do-ag` with `C-c h a` right now. --- modules/navigation/siren-helm-ag.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/navigation/siren-helm-ag.el b/modules/navigation/siren-helm-ag.el index e75f88f..9d60f65 100644 --- a/modules/navigation/siren-helm-ag.el +++ b/modules/navigation/siren-helm-ag.el @@ -12,10 +12,12 @@ :straight (:type git :host github :repo "emacsorphanage/helm-ag" :fork (:host github :repo "jimeh/helm-ag" :branch "personal-patches")) - + :after (helm-config) :bind - ("C-c C-s" . helm-do-ag) + ("C-x '" . helm-do-ag-project-root) ("C-x C-'" . helm-do-ag-project-root) + (:map helm-command-map + ("a" . helm-do-ag)) :custom (helm-ag-base-command "rg --no-heading")