Add helm-git-grep to the git layer
This commit is contained in:
parent
7852c3b36e
commit
95f276bd21
|
@ -34,6 +34,7 @@ This layers adds extensive support for [[http://git-scm.com/][git]] to Spacemacs
|
|||
- quick in buffer history browsing with [[https://melpa.org/#/git-timemachine][git-timemachine]].
|
||||
- quick in buffer last commit message per line with [[https://github.com/syohex/emacs-git-messenger][git-messenger]]
|
||||
- colorize buffer line by age of commit with [[https://github.com/syohex/emacs-smeargle][smeargle]]
|
||||
- git grep with [[https://github.com/yasuyk/helm-git-grep][helm-git-grep]]
|
||||
- gitignore generator with [[https://github.com/jupl/helm-gitignore][helm-gitignore]]
|
||||
- org integration with magit via [[https://github.com/magit/orgit][orgit]]
|
||||
|
||||
|
@ -112,6 +113,8 @@ Git commands (start with ~g~):
|
|||
|
||||
| Key Binding | Description |
|
||||
|-------------+-----------------------------------------------------|
|
||||
| ~SPC g /~ | open =helm-git-grep= |
|
||||
| ~SPC g *~ | open =helm-git-grep-at-point= |
|
||||
| ~SPC g b~ | open a =magit= blame |
|
||||
| ~SPC g f f~ | view a file at a specific branch or commit |
|
||||
| ~SPC g f l~ | commits log for current file |
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
git-link
|
||||
git-messenger
|
||||
git-timemachine
|
||||
(helm-git-grep :requires helm)
|
||||
(helm-gitignore :requires helm)
|
||||
magit
|
||||
magit-gitflow
|
||||
|
@ -46,6 +47,13 @@
|
|||
(defun git/post-init-fill-column-indicator ()
|
||||
(add-hook 'git-commit-mode-hook 'fci-mode))
|
||||
|
||||
(defun git/init-helm-git-grep ()
|
||||
(use-package helm-git-grep
|
||||
:defer t
|
||||
:init (spacemacs/set-leader-keys
|
||||
"g/" 'helm-git-grep
|
||||
"g*" 'helm-git-grep-at-point)))
|
||||
|
||||
(defun git/init-helm-gitignore ()
|
||||
(use-package helm-gitignore
|
||||
:defer t
|
||||
|
|
Loading…
Reference in New Issue