Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\cite autocompletion #6

Closed
SHWB opened this issue Feb 20, 2017 · 7 comments
Closed

\cite autocompletion #6

SHWB opened this issue Feb 20, 2017 · 7 comments

Comments

@SHWB
Copy link

SHWB commented Feb 20, 2017

Hi,
I can't get any suggestion after typing a \cite command.

I followed all the steps in the Requirements section.
This is a gist with a MWE, where the bib file and the main are in the same folder.

https://gist.github.com/anonymous/59292e9b8aa1d214fa75cc27107a8add

I tried several combinations, as adding a TEX root header to the bib files as well.
Originally, I faced this problem with .bib files in a different subfolder, so I set up the attached example, but the autocompletion does not trigger even with a .bib file in the same folder.

Thanks.

@James-Yu
Copy link
Collaborator

Thank you for the issue and self-explained gist. Currently only \bibliography is detected as a valid bib definition. I will add support to \addbibresource shortly.

James-Yu added a commit that referenced this issue Feb 20, 2017
@James-Yu
Copy link
Collaborator

New v0.5.5 should fix this problem. If not, please re-open this issue.

@SHWB
Copy link
Author

SHWB commented Feb 20, 2017

Thank you for being so quickly responsive, however the issue appears not to be fixed.

@James-Yu
Copy link
Collaborator

James-Yu commented Feb 20, 2017

v0.5.6 should fix the problem. The bug is caused by a missing \. identifier in the regex to identify bibtex file names, which causes files with extensions ignored by the editor. The bug is fixed now. Please test and see if the issue persists.

Sorry for the trouble.

@SHWB
Copy link
Author

SHWB commented Feb 20, 2017

No problem at all!
Now it works fine if the bib file is in the root folder.

I tried the following \addbibresource{bib/mybib.bib} in the MWE working example as above (paths changed accordingly), but no pop-up.

@James-Yu
Copy link
Collaborator

James-Yu commented Feb 20, 2017

Shoot, I forgot to also add \/\\ to the regex. Will do so in the next version.

Maybe a wildcard . should be fine.

@James-Yu
Copy link
Collaborator

v0.5.7 should FINALLY fix the problem. :-]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants