summaryrefslogtreecommitdiff
path: root/modes/vc-git
diff options
context:
space:
mode:
authorDiego Alvarez <diego.canada@icloud.com>2023-04-13 12:38:30 -0500
committerJames <1227856+jojojames@users.noreply.github.com>2023-05-01 21:08:51 -0700
commit48810f908f8074df835ef7f82256bc0a5a7d1652 (patch)
tree4935d2c5be18027c3a6659913057772c97484b7b /modes/vc-git
parent26c47b1cb71af64349aefb360ca98a67e301dea4 (diff)
Update evil-collection-vc-git.el
Add a few commands for the git log view
Diffstat (limited to 'modes/vc-git')
-rw-r--r--modes/vc-git/evil-collection-vc-git.el9
1 files changed, 8 insertions, 1 deletions
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 "<tab>") 'log-view-toggle-entry-display))
(provide 'evil-collection-vc-git)
;;; evil-collection-vc-git.el ends here