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 `<helm-prefix> 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.
This commit is contained in:
2020-05-10 20:29:06 +01:00
parent cb16ffe993
commit decc1c58c1

View File

@@ -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")