Extend backend-agnostic vc functionality
this commit adds a default keybinding for the vc-gutter hydra (leader-g .) if both vc-gutter and hydra are enabled. It ensures that the various vc-*-log-view-modes open up in emacs state, and it adds hg, svn and bzr to the list of vc backends handled by git-gutter
This commit is contained in:
parent
ac87afe34b
commit
2ce58c6df3
4 changed files with 31 additions and 8 deletions
|
@ -395,15 +395,17 @@
|
|||
:desc "Sudo this file" "U" #'doom/sudo-this-file
|
||||
:desc "Yank filename" "y" #'+default/yank-buffer-filename)
|
||||
|
||||
;;; <leader> g --- git
|
||||
;;; <leader> g --- git/version control
|
||||
(:prefix-map ("g" . "git")
|
||||
:desc "Git revert file" "R" #'vc-revert
|
||||
:desc "Revert file" "R" #'vc-revert
|
||||
:desc "Copy link to remote" "y" #'+vc/browse-at-remote-kill-file-or-region
|
||||
:desc "Copy link to homepage" "Y" #'+vc/browse-at-remote-kill-homepage
|
||||
(:when (featurep! :ui hydra)
|
||||
:desc "SMerge" "m" #'+vc/smerge-hydra/body)
|
||||
(:when (featurep! :ui vc-gutter)
|
||||
:desc "Git revert hunk" "r" #'git-gutter:revert-hunk
|
||||
(:when (featurep! :ui hydra)
|
||||
:desc "VCGutter" "." #'+vc/gutter-hydra/body)
|
||||
:desc "Revert hunk" "r" #'git-gutter:revert-hunk
|
||||
:desc "Git stage hunk" "s" #'git-gutter:stage-hunk
|
||||
:desc "Git time machine" "t" #'git-timemachine-toggle
|
||||
:desc "Jump to next hunk" "]" #'git-gutter:next-hunk
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue