From 76bd7d6cb44752022744a5cfa03a2df66a824d05 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 21 Jul 2019 15:26:58 -0400 Subject: [PATCH] Map gr to jump to rebasing section --- autoload/fugitive.vim | 3 ++- doc/fugitive.txt | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 8978668..c89c39a 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1796,6 +1796,7 @@ function! fugitive#BufReadStatus() abort nnoremap gs :exe StageJump(v:count, 'Staged') nnoremap gp :exe StageJump(v:count, 'Unpushed') nnoremap gP :exe StageJump(v:count, 'Unpulled') + nnoremap gr :exe StageJump(v:count, 'Rebasing') nnoremap C :Gcommit:echohl WarningMsgecho ':Gstatus C is deprecated in favor of cc'echohl NONE nnoremap a :execute Do('Toggle',0) nnoremap i :execute StageIntend(v:count1) @@ -2611,7 +2612,7 @@ endfunction function! s:NextFileHunk(count) abort for i in range(a:count) - call search('^[A-Z?] .\|^diff --\|^[0-9a-f]\{4,\} \|^@','W') + call search('^[A-Z?] .\|^diff --\|^\%(\l\{3,\} \)\=[0-9a-f]\{4,\} \|^@','W') endfor call s:StageReveal() return '.' diff --git a/doc/fugitive.txt b/doc/fugitive.txt index bcf1552..02e0d34 100644 --- a/doc/fugitive.txt +++ b/doc/fugitive.txt @@ -346,6 +346,9 @@ gp Jump to "Unpushed" section. *fugitive_gP* gP Jump to "Unpulled" section. + *fugitive_gr* +gr Jump to "Rebasing" section. + *fugitive_c* Commit mappings ~