Add a key binding for magit-find-file
problem: currently, viewing a file at a specific branch/commit, requires one to type the magit-find-file command, at the M-x prompt solution: SPC g f f is available and consistent with the SPC f f key binding
This commit is contained in:
parent
962cb03a85
commit
116c51520e
|
@ -3,29 +3,29 @@
|
||||||
[[file:img/git.png]]
|
[[file:img/git.png]]
|
||||||
|
|
||||||
* Table of Contents :TOC_4_gh:noexport:
|
* Table of Contents :TOC_4_gh:noexport:
|
||||||
- [[#description][Description]]
|
- [[#descriptions][Descriptions]]
|
||||||
- [[#features][Features:]]
|
- [[#features][Features:]]
|
||||||
- [[#install][Install]]
|
- [[#install][Install]]
|
||||||
- [[#layer][Layer]]
|
- [[#layer][Layer]]
|
||||||
- [[#magit-status-fullscreen][Magit status fullscreen]]
|
- [[#magit-status-fullscreen][Magit status fullscreen]]
|
||||||
- [[#magit-auto-complete][Magit auto-complete]]
|
- [[#magit-auto-complete][Magit auto-complete]]
|
||||||
- [[#magit-svn-plugin][Magit SVN plugin]]
|
- [[#magit-svn-plugin][Magit SVN plugin]]
|
||||||
- [[#global-git-commit-mode][Global git commit mode]]
|
- [[#global-git-commit-mode][Global git commit mode]]
|
||||||
- [[#git][Git]]
|
- [[#git][Git]]
|
||||||
- [[#git-flow][Git-Flow]]
|
- [[#git-flow][Git-Flow]]
|
||||||
- [[#org-integration][Org integration]]
|
- [[#org-integration][Org integration]]
|
||||||
- [[#working-with-git][Working with Git]]
|
- [[#working-with-git][Working with Git]]
|
||||||
- [[#magit][Magit]]
|
- [[#magit][Magit]]
|
||||||
- [[#staging-lines][Staging lines]]
|
- [[#staging-lines][Staging lines]]
|
||||||
- [[#commit-message-editing-buffer][Commit message editing buffer]]
|
- [[#commit-message-editing-buffer][Commit message editing buffer]]
|
||||||
- [[#interactive-rebase-buffer][Interactive rebase buffer]]
|
- [[#interactive-rebase-buffer][Interactive rebase buffer]]
|
||||||
- [[#quick-guide-for-recurring-use-cases-in-magit][Quick guide for recurring use cases in Magit]]
|
- [[#quick-guide-for-recurring-use-cases-in-magit][Quick guide for recurring use cases in Magit]]
|
||||||
- [[#git-flow-1][Git-Flow]]
|
- [[#git-flow-1][Git-Flow]]
|
||||||
- [[#git-time-machine][Git time machine]]
|
- [[#git-time-machine][Git time machine]]
|
||||||
- [[#git-links-to-web-services][Git links to web services]]
|
- [[#git-links-to-web-services][Git links to web services]]
|
||||||
- [[#repository-list][Repository list]]
|
- [[#repository-list][Repository list]]
|
||||||
|
|
||||||
* Description
|
* Descriptions
|
||||||
This layers adds extensive support for [[http://git-scm.com/][git]].
|
This layers adds extensive support for [[http://git-scm.com/][git]].
|
||||||
|
|
||||||
** Features:
|
** Features:
|
||||||
|
@ -107,7 +107,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 c~ | clone a repository |
|
| ~SPC g f f~ | view a file at a specific branch or commit |
|
||||||
| ~SPC g f h~ | show file commits history |
|
| ~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 |
|
||||||
|
|
|
@ -127,6 +127,7 @@
|
||||||
(spacemacs/set-leader-keys
|
(spacemacs/set-leader-keys
|
||||||
"gb" 'spacemacs/git-blame-micro-state
|
"gb" 'spacemacs/git-blame-micro-state
|
||||||
"gc" 'magit-clone
|
"gc" 'magit-clone
|
||||||
|
"gff" 'magit-find-file
|
||||||
"gfh" 'magit-log-buffer-file
|
"gfh" 'magit-log-buffer-file
|
||||||
"gi" 'magit-init
|
"gi" 'magit-init
|
||||||
"gL" 'magit-list-repositories
|
"gL" 'magit-list-repositories
|
||||||
|
|
Loading…
Reference in a new issue