Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vimagit
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
jreybert
vimagit
Commits
b17ba036
Commit
b17ba036
authored
9 years ago
by
Jerome Reybert
Browse files
Options
Downloads
Patches
Plain Diff
plugin/magit.vim: inline help shows mapped key instead of default (fix #72)
parent
ad714765
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugin/magit.vim
+38
-19
38 additions, 19 deletions
plugin/magit.vim
with
38 additions
and
19 deletions
plugin/magit.vim
+
38
−
19
View file @
b17ba036
...
@@ -68,39 +68,58 @@ endif
...
@@ -68,39 +68,58 @@ endif
" s:magit_inline_help: Dict containing inline help for each section
" s:magit_inline_help: Dict containing inline help for each section
let
s:magit_inline_help
=
{
let
s:magit_inline_help
=
{
\
'staged'
:
[
\
'staged'
:
[
\
'S if cursor on filename header, unstage file'
,
\
g:magit_stage_hunk_mapping
\
.
' if cursor on filename header, unstage file'
,
\
' if cursor in hunk, unstage hunk'
,
\
' if cursor in hunk, unstage hunk'
,
\
'F if cursor on filename header or hunk, unstage whole file'
,
\
g:magit_stage_file_mapping
\
.
' if cursor on filename header or hunk, unstage whole file'
,
\
],
\
],
\
'unstaged'
:
[
\
'unstaged'
:
[
\
'S if cursor on filename header, stage file'
,
\
g:magit_stage_hunk_mapping
\
.
' if cursor on filename header, stage file'
,
\
' if cursor in hunk, stage hunk'
,
\
' if cursor in hunk, stage hunk'
,
\
' if visual selection in hunk (with v), stage selection'
,
\
' if visual selection in hunk (with v), stage selection'
,
\
' if lines marked in hunk (with M), stage marked lines'
,
\
' if lines marked in hunk (with M), stage marked lines'
,
\
'L stage the line under the cursor'
,
\
g:magit_stage_line_mapping
\
'M if cursor in hunk, mark line under cursor "to be staged"'
,
\
.
' stage the line under the cursor'
,
\
g:magit_mark_line_mapping
\
.
' if cursor in hunk, mark line under cursor "to be staged"'
,
\
' if visual selection in hunk (with v), mark selected lines "to be'
\
' if visual selection in hunk (with v), mark selected lines "to be'
\
' staged"'
,
\
' staged"'
,
\
'F if cursor on filename header or hunk, stage whole file'
,
\
g:magit_stage_file_mapping
\
'E edit, jump cursor to file containing this hunk'
,
\
.
' if cursor on filename header or hunk, stage whole file'
,
\
'N,P move to Next/Previous hunk in magit buffer'
,
\
g:magit_edit_mapping
\
'DDD discard file changes (warning, changes will be lost)'
,
\
.
' edit, jump cursor to file containing this hunk'
,
\
'I add file in .gitgnore'
,
\
g:magit_jump_next_hunk
.
','
.
g:magit_jump_prev_hunk
\
.
' move to Next/Previous hunk in magit buffer'
,
\
g:magit_discard_hunk_mapping
\
.
' discard file changes (warning, changes will be lost)'
,
\
g:magit_ignore_mapping
\
.
' add file in .gitgnore'
,
\
],
\
],
\
'global'
:
[
\
'global'
:
[
\
'<CR> if cursor on filename header line, unhide diffs for this file'
,
\
g:magit_folding_toggle_mapping
[
0
]
\
'CC set commit mode to normal, and show "Commit message" section'
,
\
.
' if cursor on filename header line, unhide diffs for this file'
,
\
'CA set commit mode amend, and show "Commit message" section with previous'
,
\
g:magit_commit_mapping
\
.
' set commit mode to normal, and show "Commit message" section'
,
\
g:magit_commit_amend_mapping
\
.
' set commit mode amend, and show "Commit message" section with previous'
,
\
' commit message'
,
\
' commit message'
,
\
'CF amend staged changes to previous commit without modifying the previous'
,
\
g:magit_commit_fixup_mapping
\
.
' amend staged changes to previous commit without modifying the previous'
,
\
' commit message'
,
\
' commit message'
,
\
'CU commit undo, cancel and close current commit message'
,
\
g:magit_close_commit_mapping
\
'R refresh magit buffer'
,
\
.
' commit undo, cancel and close current commit message'
,
\
'q close magit buffer'
,
\
g:magit_reload_mapping
\
'h toggle help showing in magit buffer'
,
\
.
' refresh magit buffer'
,
\
g:magit_close_mapping
\
.
' close magit buffer'
,
\
g:magit_toggle_help_mapping
\
.
' toggle help showing in magit buffer'
,
\
],
\
],
\
'commit'
:
[
\
'commit'
:
[
\
'CC commit all staged changes with commit mode previously set (normal or'
,
\
g:magit_commit_mapping
\
.
' commit all staged changes with commit mode previously set (normal or'
,
\
' amend) with message written in this section'
,
\
' amend) with message written in this section'
,
\
],
\
],
\
}
\
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment