msprev / fzf-bibtex

a BibTeX source for fzf
BSD 3-Clause "New" or "Revised" License
129 stars 15 forks source link

can't load package: package github.com/msprev/fzf-bibtex #12

Closed remembertoremind closed 5 years ago

remembertoremind commented 5 years ago

Hi! I installed fzf, bibtool and go. However, the follow instructions go get github.com/msprev/fzf-bibtex gave me this error

can't load package: package github.com/msprev/fzf-bibtex: no Go files in /home/chansen/go/src/github.com/msprev/fzf-bibtex

I added the first funtion to vimrc and pressed leader c, which brings up an empty fzf. When pressing enter with nothing selected in fzf-bibtex the following is pasted in my document /bin/bash: bibtex-cite: command not found. However, the go-commands from the installation worked fine.

EDIT: I'm on arch btw

msprev commented 5 years ago

Can you try running go get github.com/msprev/fzf-bibtex/cmd/bibtex-ls first, and then run go install on all the commands, as per the installation instructions?

remembertoremind commented 5 years ago

That worked. I no longer get the error in vim and fzf-bibtex start as expected. However, there is still no content in fzf when it starts. I don't know how to get more information or troubleshoot unfortunately :/

msprev commented 5 years ago

Do you want to test it by running it on your bibliography file on the command line as described in the readme?

To use it in vim, you need to make sure these environment variables are set:

let $FZF_BIBTEX_CACHEDIR = 'PATH-TO-CACHE-DIR'
let $FZF_BIBTEX_SOURCES = 'PATH-TO-BIBTEX-FILE'
msprev commented 5 years ago

I'm closing the issue as I haven't heard anything further, and I'm assuming that you've got it working inside vim. Reopen the issue if this is not the case.