mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -05:00
Provide User FugitivePager autocommand event
This commit is contained in:
@@ -2140,7 +2140,7 @@ function! s:buffer_repo() dict abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:buffer_type(...) dict abort
|
function! s:buffer_type(...) dict abort
|
||||||
return 'see b:fugitive_type'
|
return 'see per type events at :help fugitive-autocommands'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
call s:add_methods('buffer', ['repo', 'type'])
|
call s:add_methods('buffer', ['repo', 'type'])
|
||||||
@@ -3007,7 +3007,7 @@ function! s:TempReadPost(file) abort
|
|||||||
call s:Map('n', 'gq', ":<C-U>bdelete<CR>", '<silent> <unique>')
|
call s:Map('n', 'gq', ":<C-U>bdelete<CR>", '<silent> <unique>')
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
return ''
|
return s:DoAutocmd('User FugitivePager')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:TempDelete(file) abort
|
function! s:TempDelete(file) abort
|
||||||
|
|||||||
@@ -645,6 +645,10 @@ FugitiveStageBlob After loading a staged blob (file) object. These
|
|||||||
*User_FugitiveIndex*
|
*User_FugitiveIndex*
|
||||||
FugitiveIndex After loading the |fugitive-summary| buffer.
|
FugitiveIndex After loading the |fugitive-summary| buffer.
|
||||||
|
|
||||||
|
*User_FugitivePager*
|
||||||
|
FugitivePager After loading a temp file created by a command like
|
||||||
|
:Git --paginate or :Git blame.
|
||||||
|
|
||||||
*User_FugitiveChanged*
|
*User_FugitiveChanged*
|
||||||
FugitiveChanged After any event which can potentially change the
|
FugitiveChanged After any event which can potentially change the
|
||||||
repository, for example, any invocation of |:Git|.
|
repository, for example, any invocation of |:Git|.
|
||||||
|
|||||||
Reference in New Issue
Block a user