Installer and Search use buffer
- instead writing to file and opening it - faster and has nicer status name - TODO unify
This commit is contained in:
parent
865e4e2a6d
commit
6c6efeeee5
@ -23,13 +23,19 @@ func! vundle#installer#new(bang, ...) abort
|
|||||||
endf
|
endf
|
||||||
|
|
||||||
func! s:display(headers, results)
|
func! s:display(headers, results)
|
||||||
if !exists('s:browse') | let s:browse = tempname() | endif
|
if exists('g:vundle_view')
|
||||||
|
exec g:vundle_view.'bd!'
|
||||||
|
endif
|
||||||
|
|
||||||
let results = map(a:results, ' printf("Bundle! ' ."'%s'".'", v:val) ')
|
let results = map(a:results, ' printf("Bundle! ' ."'%s'".'", v:val) ')
|
||||||
call writefile(a:headers + results, s:browse)
|
silent pedit [Vundle] installer
|
||||||
silent pedit `=s:browse`
|
|
||||||
|
|
||||||
wincmd P | wincmd H
|
wincmd P | wincmd H
|
||||||
|
|
||||||
|
let g:vundle_view = bufnr('%')
|
||||||
|
|
||||||
|
call append(0, a:headers + results)
|
||||||
|
|
||||||
setl ft=vundle
|
setl ft=vundle
|
||||||
call vundle#scripts#setup_view()
|
call vundle#scripts#setup_view()
|
||||||
endf
|
endf
|
||||||
|
@ -58,13 +58,19 @@ func! s:view_log()
|
|||||||
endf
|
endf
|
||||||
|
|
||||||
func! s:display(headers, results)
|
func! s:display(headers, results)
|
||||||
if !exists('s:browse') | let s:browse = tempname() | endif
|
if exists('g:vundle_view')
|
||||||
|
exec g:vundle_view.'bd!'
|
||||||
|
endif
|
||||||
|
|
||||||
let results = reverse(map(a:results, ' printf("Bundle ' ."'%s'".'", v:val) '))
|
let results = reverse(map(a:results, ' printf("Bundle ' ."'%s'".'", v:val) '))
|
||||||
call writefile(a:headers + results, s:browse)
|
silent pedit [Vundle] search
|
||||||
silent pedit `=s:browse`
|
|
||||||
|
|
||||||
wincmd P | wincmd H
|
wincmd P | wincmd H
|
||||||
|
|
||||||
|
let g:vundle_view = bufnr('%')
|
||||||
|
|
||||||
|
call append(0, a:headers + results)
|
||||||
|
|
||||||
setl ft=vundle
|
setl ft=vundle
|
||||||
call vundle#scripts#setup_view()
|
call vundle#scripts#setup_view()
|
||||||
endf
|
endf
|
||||||
|
Loading…
Reference in New Issue
Block a user