Provide map to close diff buffers
This commit is contained in:
parent
f2ca0e43a1
commit
bbd9afe790
@ -5422,6 +5422,7 @@ function! fugitive#MapJumps(...) abort
|
|||||||
call s:MapMotion('][', 'exe <SID>NextSectionEnd(v:count1)')
|
call s:MapMotion('][', 'exe <SID>NextSectionEnd(v:count1)')
|
||||||
endif
|
endif
|
||||||
call s:Map('n', 'S', ':<C-U>echoerr "Use gO"<CR>', '<silent>')
|
call s:Map('n', 'S', ':<C-U>echoerr "Use gO"<CR>', '<silent>')
|
||||||
|
call s:Map('n', 'dq', ":<C-U>call <SID>DiffClose()<CR>", '<silent>')
|
||||||
call s:Map('n', '-', ":<C-U>exe 'Gedit ' . <SID>fnameescape(<SID>NavigateUp(v:count1))<Bar> if getline(1) =~# '^tree \x\{40,\}$' && empty(getline(2))<Bar>call search('^'.escape(expand('#:t'),'.*[]~\').'/\=$','wc')<Bar>endif<CR>", '<silent>')
|
call s:Map('n', '-', ":<C-U>exe 'Gedit ' . <SID>fnameescape(<SID>NavigateUp(v:count1))<Bar> if getline(1) =~# '^tree \x\{40,\}$' && empty(getline(2))<Bar>call search('^'.escape(expand('#:t'),'.*[]~\').'/\=$','wc')<Bar>endif<CR>", '<silent>')
|
||||||
call s:Map('n', 'P', ":<C-U>exe 'Gedit ' . <SID>fnameescape(<SID>ContainingCommit().'^'.v:count1.<SID>Relative(':'))<CR>", '<silent>')
|
call s:Map('n', 'P', ":<C-U>exe 'Gedit ' . <SID>fnameescape(<SID>ContainingCommit().'^'.v:count1.<SID>Relative(':'))<CR>", '<silent>')
|
||||||
call s:Map('n', '~', ":<C-U>exe 'Gedit ' . <SID>fnameescape(<SID>ContainingCommit().'~'.v:count1.<SID>Relative(':'))<CR>", '<silent>')
|
call s:Map('n', '~', ":<C-U>exe 'Gedit ' . <SID>fnameescape(<SID>ContainingCommit().'~'.v:count1.<SID>Relative(':'))<CR>", '<silent>')
|
||||||
|
@ -308,6 +308,9 @@ dv Perform a |:Gvdiffsplit| on the file under the cursor.
|
|||||||
*fugitive_ds* *fugitive_dh*
|
*fugitive_ds* *fugitive_dh*
|
||||||
ds Perform a |:Ghdiffsplit| on the file under the cursor.
|
ds Perform a |:Ghdiffsplit| on the file under the cursor.
|
||||||
dh
|
dh
|
||||||
|
*fugitive_dq*
|
||||||
|
dq Close all but one diff buffer, and |:diffoff|! the
|
||||||
|
last one.
|
||||||
|
|
||||||
*fugitive_d?*
|
*fugitive_d?*
|
||||||
d? Show this help.
|
d? Show this help.
|
||||||
|
Loading…
Reference in New Issue
Block a user