git: add SPC g f h to get the commit history of the current file
This commit is contained in:
parent
1c4f685b13
commit
0a01159572
|
@ -106,6 +106,7 @@ Git commands (start with ~g~):
|
||||||
|-------------+-----------------------------------------------------|
|
|-------------+-----------------------------------------------------|
|
||||||
| ~SPC g >~ | show submodule prompt |
|
| ~SPC g >~ | show submodule prompt |
|
||||||
| ~SPC g b~ | open a =magit= blame |
|
| ~SPC g b~ | open a =magit= blame |
|
||||||
|
| ~SPC g f h~ | show file commits history |
|
||||||
| ~SPC g H c~ | clear highlights |
|
| ~SPC g H c~ | clear highlights |
|
||||||
| ~SPC g H h~ | highlight regions by age of commits |
|
| ~SPC g H h~ | highlight regions by age of commits |
|
||||||
| ~SPC g H t~ | highlight regions by last updated time |
|
| ~SPC g H t~ | highlight regions by last updated time |
|
||||||
|
|
|
@ -120,12 +120,14 @@
|
||||||
(setenv "GIT_ASKPASS" "git-gui--askpass"))
|
(setenv "GIT_ASKPASS" "git-gui--askpass"))
|
||||||
;; key bindings
|
;; key bindings
|
||||||
(spacemacs/declare-prefix "gd" "diff")
|
(spacemacs/declare-prefix "gd" "diff")
|
||||||
|
(spacemacs/declare-prefix "gf" "file")
|
||||||
(spacemacs/set-leader-keys
|
(spacemacs/set-leader-keys
|
||||||
"gb" 'spacemacs/git-blame-micro-state
|
"gb" 'spacemacs/git-blame-micro-state
|
||||||
"gm" 'magit-dispatch-popup
|
"gfh" 'magit-log-buffer-file
|
||||||
"gs" 'magit-status
|
"gm" 'magit-dispatch-popup
|
||||||
"gS" 'magit-stage-file
|
"gs" 'magit-status
|
||||||
"gU" 'magit-unstage-file)
|
"gS" 'magit-stage-file
|
||||||
|
"gU" 'magit-unstage-file)
|
||||||
;; transient state
|
;; transient state
|
||||||
;; TODO use transient state instead of old micro-state, IIRC we continue
|
;; TODO use transient state instead of old micro-state, IIRC we continue
|
||||||
;; to use micro-state because of the re-entry keyword :on-enter which is
|
;; to use micro-state because of the re-entry keyword :on-enter which is
|
||||||
|
|
Loading…
Reference in a new issue