From 48810f908f8074df835ef7f82256bc0a5a7d1652 Mon Sep 17 00:00:00 2001 From: Diego Alvarez Date: Thu, 13 Apr 2023 12:38:30 -0500 Subject: [PATCH] Update evil-collection-vc-git.el Add a few commands for the git log view --- modes/vc-git/evil-collection-vc-git.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modes/vc-git/evil-collection-vc-git.el b/modes/vc-git/evil-collection-vc-git.el index 5ff94a9..4f002be 100644 --- a/modes/vc-git/evil-collection-vc-git.el +++ b/modes/vc-git/evil-collection-vc-git.el @@ -35,7 +35,14 @@ ;;;###autoload (defun evil-collection-vc-git-setup () "Set up `evil' bindings for `vc-git'." - (evil-set-initial-state 'vc-git-log-view-mode 'normal)) + (evil-set-initial-state 'vc-git-log-view-mode 'normal) + (evil-collection-define-key 'normal 'vc-git-log-view-mode-map + "q" 'quit-window + "d" 'log-view-diff + "D" 'log-view-diff-changeset + (kbd "C-j") 'log-view-msg-next + (kbd "C-k") 'log-view-msg-prev + (kbd "") 'log-view-toggle-entry-display)) (provide 'evil-collection-vc-git) ;;; evil-collection-vc-git.el ends here