From 9168213b99ae5577518e6707a22f0431995301b2 Mon Sep 17 00:00:00 2001 From: James Nguyen Date: Thu, 2 May 2019 19:01:53 -0700 Subject: [PATCH] Deadgrep: Add experimental support for editing Worth keeping track of https://github.com/Wilfred/deadgrep/issues/12 in the future in case a better (wgrep?) approach works out. --- evil-collection-deadgrep.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/evil-collection-deadgrep.el b/evil-collection-deadgrep.el index fc1cffb..55e9c4b 100644 --- a/evil-collection-deadgrep.el +++ b/evil-collection-deadgrep.el @@ -30,11 +30,15 @@ (require 'evil-collection) (require 'deadgrep nil t) -(defconst evil-collection-deadgrep-maps '(deadgrep-mode-map)) +(defconst evil-collection-deadgrep-maps '(deadgrep-edit-mode-map + deadgrep-mode-map)) ;;;###autoload (defun evil-collection-deadgrep-setup () "Set up `evil' bindings for deadgrep.." + (evil-collection-define-key 'normal 'deadgrep-edit-mode-map + (kbd "RET") 'deadgrep-visit-result + (kbd "") 'deadgrep-mode) (evil-collection-define-key 'normal 'deadgrep-mode-map (kbd "RET") 'deadgrep-visit-result (kbd "") 'deadgrep-visit-result-other-window @@ -44,6 +48,8 @@ (kbd "C-k") 'deadgrep-backward (kbd "TAB") 'deadgrep-toggle-file-results + "i" 'deadgrep-edit-mode + ;; FIXME: Maybe we should bind this to something? ;; (define-key map (kbd "C-c C-k") #'deadgrep-kill-process)