diff options
Diffstat (limited to 'modules/vc-config.el')
| -rw-r--r-- | modules/vc-config.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/vc-config.el b/modules/vc-config.el index a936e890..21a4380c 100644 --- a/modules/vc-config.el +++ b/modules/vc-config.el @@ -115,6 +115,14 @@ (forge-create-issue) (user-error "Not in a forge repository"))) +(defun cj/goto-git-gutter-diff-hunks () + "Jump to git-gutter diff hunks using consult. +Searches for lines starting with + or - (diff markers) and allows +interactive selection to jump to any changed line in the buffer." + (interactive) + (require 'git-gutter) + (consult-line "^[+\\-]")) + ;; --------------------------------- VC Keymap --------------------------------- ;; Ordering & sorting prefix and keymap |
