Just one thing, I followed the installation instructions (I'm running ubuntu 18.04 under WSL) but the go command where not exported. Had to add make the following changes to vimrc to make them work
let $FZF_BIBTEX_CACHEDIR = 'PATH-TO-CACHE-DIR'
let $FZF_BIBTEX_SOURCES = 'PATH-TO-BIBTEX-FILE'
function! s:bibtex_cite_sink(lines)
let r=system("~/go/bin/bibtex-cite ", a:lines) "inserted filepath
execute ':normal! i' . r
endfunction
function! s:bibtex_markdown_sink(lines)
let r=system("~/go/bin/bibtex-markdown ", a:lines) "inserted filepath
execute ':normal! i' . r
endfunction
Thank you for awesome work!
Just one thing, I followed the installation instructions (I'm running ubuntu 18.04 under WSL) but the go command where not exported. Had to add make the following changes to vimrc to make them work
let $FZF_BIBTEX_CACHEDIR = 'PATH-TO-CACHE-DIR' let $FZF_BIBTEX_SOURCES = 'PATH-TO-BIBTEX-FILE'
function! s:bibtex_cite_sink(lines) let r=system("~/go/bin/bibtex-cite ", a:lines) "inserted filepath execute ':normal! i' . r endfunction
function! s:bibtex_markdown_sink(lines) let r=system("~/go/bin/bibtex-markdown ", a:lines) "inserted filepath execute ':normal! i' . r endfunction
nnoremapc :call fzf#run({
\ 'source': '~/go/bin/bibtex-ls', "inserted filepath
\ 'sink*': function('bibtex_cite_sink'),
\ 'up': '40%',
\ 'options': '--ansi --layout=reverse-list --multi --prompt "Cite> "'})
nnoremapm :call fzf#run({
\ 'source': '~/go/bin/bibtex-ls', "inserted filepath
\ 'sink*': function('bibtex_markdown_sink'),
\ 'up': '40%',
\ 'options': '--ansi --layout=reverse-list --multi --prompt "Markdown> "'})