Update evil-collection-vc-git.el

Add a few commands for the git log view
This commit is contained in:
Diego Alvarez 2023-04-13 12:38:30 -05:00 committed by James
parent 26c47b1cb7
commit 48810f908f
1 changed files with 8 additions and 1 deletions

View File

@ -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 "<tab>") 'log-view-toggle-entry-display))
(provide 'evil-collection-vc-git)
;;; evil-collection-vc-git.el ends here