mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-12-08 13:04:51 +08:00
Standardize on "maps", not "mappings"
This commit is contained in:
@@ -4,8 +4,8 @@ I'm not going to lie to you; fugitive.vim may very well be the best
|
|||||||
Git wrapper of all time. Check out these features:
|
Git wrapper of all time. Check out these features:
|
||||||
|
|
||||||
Bring up an enhanced version of `git status` with `:G` (also known as
|
Bring up an enhanced version of `git status` with `:G` (also known as
|
||||||
`:Gstatus`). Press `g?` to bring up a list of mappings for numerous
|
`:Gstatus`). Press `g?` to bring up a list of maps for numerous operations
|
||||||
operations including diffing, staging, committing, rebasing, and stashing.
|
including diffing, staging, committing, rebasing, and stashing.
|
||||||
|
|
||||||
View any blob, tree, commit, or tag in the repository with `:Gedit` (and
|
View any blob, tree, commit, or tag in the repository with `:Gedit` (and
|
||||||
`:Gsplit`, `:Gvsplit`, `:Gtabedit`, ...). Edit a file in the index and
|
`:Gsplit`, `:Gvsplit`, `:Gtabedit`, ...). Edit a file in the index and
|
||||||
|
|||||||
@@ -5506,8 +5506,8 @@ function! fugitive#MapJumps(...) abort
|
|||||||
|
|
||||||
call s:Map('n', '.', ":<C-U> <C-R>=<SID>fnameescape(fugitive#Real(@%))<CR><Home>")
|
call s:Map('n', '.', ":<C-U> <C-R>=<SID>fnameescape(fugitive#Real(@%))<CR><Home>")
|
||||||
call s:Map('x', '.', ":<C-U> <C-R>=<SID>fnameescape(fugitive#Real(@%))<CR><Home>")
|
call s:Map('x', '.', ":<C-U> <C-R>=<SID>fnameescape(fugitive#Real(@%))<CR><Home>")
|
||||||
call s:Map('n', 'g?', ":<C-U>help fugitive-mappings<CR>", '<silent>')
|
call s:Map('n', 'g?', ":<C-U>help fugitive-map<CR>", '<silent>')
|
||||||
call s:Map('n', '<F1>', ":<C-U>help fugitive-mappings<CR>", '<silent>')
|
call s:Map('n', '<F1>', ":<C-U>help fugitive-map<CR>", '<silent>')
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ that are part of Git repositories).
|
|||||||
|
|
||||||
*:Gstatus*
|
*:Gstatus*
|
||||||
:Git Bring up a summary window vaguely akin to git-status.
|
:Git Bring up a summary window vaguely akin to git-status.
|
||||||
:G Press g? or see |fugitive-mappings| for usage.
|
:G Press g? or see |fugitive-maps| for usage.
|
||||||
:Gstatus
|
:Gstatus
|
||||||
|
|
||||||
*:Git-commit* *:Gcommit*
|
*:Git-commit* *:Gcommit*
|
||||||
@@ -249,15 +249,15 @@ that are part of Git repositories).
|
|||||||
:[range]Gbrowse! [args] Like :Gbrowse, but put the URL on the clipboard rather
|
:[range]Gbrowse! [args] Like :Gbrowse, but put the URL on the clipboard rather
|
||||||
than opening it.
|
than opening it.
|
||||||
|
|
||||||
MAPPINGS *fugitive-mappings*
|
MAPS *fugitive-maps*
|
||||||
|
|
||||||
These mappings are available in both the |:Gstatus| buffer and Fugitive object
|
These maps are available in both the |:Gstatus| buffer and Fugitive object
|
||||||
buffers, although not all mappings make sense in all buffers. Mappings that
|
buffers, although not all maps make sense in all buffers. Mappings that
|
||||||
operate on the file or hunk under the cursor are generally available in visual
|
operate on the file or hunk under the cursor are generally available in visual
|
||||||
mode to operate on multiple files or partial hunks.
|
mode to operate on multiple files or partial hunks.
|
||||||
|
|
||||||
*fugitive-staging-mappings*
|
*fugitive-staging-maps*
|
||||||
Staging/unstaging mappings ~
|
Staging/unstaging maps ~
|
||||||
|
|
||||||
*fugitive_s*
|
*fugitive_s*
|
||||||
s Stage (add) the file or hunk under the cursor.
|
s Stage (add) the file or hunk under the cursor.
|
||||||
@@ -299,7 +299,7 @@ P under the cursor. On untracked files, this instead
|
|||||||
calls |:Git| add --intent-to-add.
|
calls |:Git| add --intent-to-add.
|
||||||
|
|
||||||
*fugitive_d*
|
*fugitive_d*
|
||||||
Diff mappings ~
|
Diff maps ~
|
||||||
*fugitive_dp*
|
*fugitive_dp*
|
||||||
dp Invoke |:Git!| diff on the file under the cursor.
|
dp Invoke |:Git!| diff on the file under the cursor.
|
||||||
Deprecated in favor of inline diffs.
|
Deprecated in favor of inline diffs.
|
||||||
@@ -320,8 +320,8 @@ dq Close all but one diff buffer, and |:diffoff|! the
|
|||||||
*fugitive_d?*
|
*fugitive_d?*
|
||||||
d? Show this help.
|
d? Show this help.
|
||||||
|
|
||||||
*fugitive-navigation-mappings*
|
*fugitive-navigation-maps*
|
||||||
Navigation mappings ~
|
Navigation maps ~
|
||||||
|
|
||||||
*fugitive_<CR>*
|
*fugitive_<CR>*
|
||||||
<CR> Open the file or |fugitive-object| under the cursor.
|
<CR> Open the file or |fugitive-object| under the cursor.
|
||||||
@@ -431,7 +431,7 @@ gi Open .git/info/exclude in a split. Use a count to
|
|||||||
open .gitignore.
|
open .gitignore.
|
||||||
|
|
||||||
*fugitive_c*
|
*fugitive_c*
|
||||||
Commit mappings ~
|
Commit maps ~
|
||||||
|
|
||||||
cc Create a commit.
|
cc Create a commit.
|
||||||
|
|
||||||
@@ -477,7 +477,7 @@ c? Show this help.
|
|||||||
|
|
||||||
*fugitive_cb*
|
*fugitive_cb*
|
||||||
*fugitive_co*
|
*fugitive_co*
|
||||||
Checkout/branch mappings ~
|
Checkout/branch maps ~
|
||||||
|
|
||||||
coo Check out the commit under the cursor.
|
coo Check out the commit under the cursor.
|
||||||
|
|
||||||
@@ -489,7 +489,7 @@ cb? Show this help.
|
|||||||
co?
|
co?
|
||||||
|
|
||||||
*fugitive_cz*
|
*fugitive_cz*
|
||||||
Stash mappings ~
|
Stash maps ~
|
||||||
|
|
||||||
czz Push stash. Pass a [count] of 1 to add
|
czz Push stash. Pass a [count] of 1 to add
|
||||||
`--include-untracked` or 2 to add `--all`.
|
`--include-untracked` or 2 to add `--all`.
|
||||||
@@ -512,7 +512,7 @@ cz<Space> Populate command line with ":Git stash ".
|
|||||||
cz? Show this help.
|
cz? Show this help.
|
||||||
|
|
||||||
*fugitive_r*
|
*fugitive_r*
|
||||||
Rebase mappings ~
|
Rebase maps ~
|
||||||
|
|
||||||
ri Perform an interactive rebase. Uses ancestor of
|
ri Perform an interactive rebase. Uses ancestor of
|
||||||
u commit under cursor as upstream if available.
|
u commit under cursor as upstream if available.
|
||||||
@@ -547,8 +547,8 @@ r<Space> Populate command line with ":Git rebase ".
|
|||||||
|
|
||||||
r? Show this help.
|
r? Show this help.
|
||||||
|
|
||||||
*fugitive-misc-mappings*
|
*fugitive-misc-maps*
|
||||||
Miscellaneous mappings ~
|
Miscellaneous maps ~
|
||||||
|
|
||||||
*fugitive_gq* *fugitive_q*
|
*fugitive_gq* *fugitive_q*
|
||||||
gq Close the status buffer.
|
gq Close the status buffer.
|
||||||
@@ -558,10 +558,10 @@ gq Close the status buffer.
|
|||||||
cursor prepopulated.
|
cursor prepopulated.
|
||||||
|
|
||||||
*fugitive_g?*
|
*fugitive_g?*
|
||||||
g? Show help for |fugitive-mappings|.
|
g? Show help for |fugitive-maps|.
|
||||||
|
|
||||||
*fugitive-global-mappings*
|
*fugitive-global-maps*
|
||||||
Global mappings ~
|
Global maps ~
|
||||||
|
|
||||||
*fugitive_c_CTRL-R_CTRL-G*
|
*fugitive_c_CTRL-R_CTRL-G*
|
||||||
<C-R><C-G> On the command line, recall the path to the current
|
<C-R><C-G> On the command line, recall the path to the current
|
||||||
|
|||||||
Reference in New Issue
Block a user