Skip to content
Snippets Groups Projects
Commit ddfe7342 authored by Jerome Reybert's avatar Jerome Reybert
Browse files

README,doc: add documentation about E mapping

parent 1957fb56
No related branches found
No related tags found
No related merge requests found
......@@ -189,6 +189,20 @@ Following mappings are set locally, for magit buffer only, in normal mode.
* If cursor is in diff header, discard whole file at cursor position.
* Only works in "Unstaged changes" section.
##### E
If cursor is in a hunk, cursor will move in the file containing this hunk, at
the line of the beginning of the hunk.
* if the file is already visible in a |window|, cursor moves to this window at
the hunk line
* if there is more than one window open, cursor moves to last accessed window
and open buffer at the hunk line
* if there is only magit window opened, split vertically, moves cursor to new
split and open buffer at the hunk line
E means 'edit'.
:exclamation: this function is extremly powerful, just give it a try!
##### N,P
* Move to **N**ext or **P**revious hunk.
......
......@@ -213,6 +213,18 @@ Following mappings are set locally, for magit buffer only, in normal mode.
position.
Only works in "Unstaged changes" section.
*vimagit-E* *magit#jump_to()*
E If cursor is in a hunk, cursor will move in the file containing
this hunk, at the line of the beginning of the hunk.
- if the file is already visible in a |window|, cursor moves to
this window at the hunk line
- if there is more than one window open, cursor moves to last
accessed window and open buffer at the hunk line
- if there is only magit window opened, split vertically, moves
cursor to new split and open buffer at the hunk line
E means 'edit'.
NOTE: this function is extremly powerful, just give it a try!
*vimagit-N* *magit#jump_hunk()*
*vimagit-P*
N,P Move to Next or Previous hunk.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment