Add vdiff and ztree tooling

This commit is contained in:
Fabio Scotto di Santolo
2026-04-12 22:45:05 +02:00
parent 675f686a46
commit 10fd3e9888
3 changed files with 31 additions and 1 deletions

View File

@@ -65,6 +65,10 @@
(autoload 'dirvish-dwim "dirvish" nil t) (autoload 'dirvish-dwim "dirvish" nil t)
(define-key fscotto/open (kbd "d") #'dirvish-dwim) (define-key fscotto/open (kbd "d") #'dirvish-dwim)
;; -------- ztree --------
(autoload 'ztree-diff "ztree" nil t)
(define-key fscotto/open (kbd "z") #'ztree-diff)
;;;; Elfeed mode maps ;;;; Elfeed mode maps
(with-eval-after-load 'elfeed (with-eval-after-load 'elfeed
(define-key elfeed-search-mode-map (kbd "w") #'elfeed-search-yank) (define-key elfeed-search-mode-map (kbd "w") #'elfeed-search-yank)

View File

@@ -11,6 +11,31 @@
'(("~/Projects" . 2) '(("~/Projects" . 2)
("~/Work" . 2)))) ("~/Work" . 2))))
(use-package vdiff
:ensure t
:commands (vdiff-current-file vdiff-files vdiff-merge-conflict)
:custom
(vdiff-lock-scrolling t)
(vdiff-auto-refine t))
(use-package vdiff-magit
:ensure t
:after (magit vdiff)
:commands (vdiff-magit vdiff-magit-dwim)
:custom
(vdiff-magit-use-ediff-for-merges nil)
:config
(define-key magit-mode-map "e" #'vdiff-magit-dwim)
(define-key magit-mode-map "E" #'vdiff-magit)
(transient-suffix-put 'magit-dispatch "e" :description "vdiff (dwim)")
(transient-suffix-put 'magit-dispatch "e" :command #'vdiff-magit-dwim)
(transient-suffix-put 'magit-dispatch "E" :description "vdiff")
(transient-suffix-put 'magit-dispatch "E" :command #'vdiff-magit))
(use-package ztree
:ensure t
:commands (ztree-diff ztree-dir))
(provide 'vcs) (provide 'vcs)
;;; vcs.el ends here ;;; vcs.el ends here

View File

@@ -34,7 +34,8 @@
"C-c o f" "RSS (Elfeed)" "C-c o f" "RSS (Elfeed)"
"C-c o l" "LLM chat (gptel)" "C-c o l" "LLM chat (gptel)"
"C-c o m" "mu4e (Email Client)" "C-c o m" "mu4e (Email Client)"
"C-c o T" "Terminal (multi-vterm)") "C-c o T" "Terminal (multi-vterm)"
"C-c o z" "Ztree diff")
;; -------------------------------------------------------------------------- ;; --------------------------------------------------------------------------
;; Version control ;; Version control