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

autocomplete only picking up cite keys, not author or title words #21

Open
walkloud opened this issue Dec 6, 2019 · 4 comments
Open

Comments

@walkloud
Copy link

walkloud commented Dec 6, 2019

Greetings,

I stumbled on your package today, and if I can get it to work, I may switch from TexShop (I am running on a mac). In the example shown in the readme, the autocomplete suggestions seem to show cite keys where the name of the cite key does not match at all the word being typed in the doc. Specifically, you type \cite{Kundur} and one of the suggestions is Anonymous:2005p1240. I am guessing that Kundur is one of the authors of the paper associated with Anonymous:2005p1240. Am I correct? If so, then my autocomplete seems to be not working properly and only picks up the cite keys where the text I type matches the key (if I type An then Anonymous:2005p1240 would be a suggestion).

If this is not supported behavior, it would be nice to have the autocomplete match against all fields in a citation, such as authors and title etc. I'd be happy to try and do this, but this is my first foray into modifying atom packages, so suggestions are welcome, such as what file would I even modify to add these options? My guess was lib/lite-bibtex-parse.js, but I wasn't sure.

Regards,
Andre

@walkloud
Copy link
Author

walkloud commented Dec 6, 2019

update: when I enabled BOTH language-latex AND language-latex2e autocomplete, the behavior seems now to match what is advertised in the Readme movie. I tried just the first one, and after reboot of Atom, it does not work. If I only use language-latex2e, it seems to work. Both of these packages are also new to me so I am not sure if one desires only language-latex2e or both.

@walkloud
Copy link
Author

walkloud commented Dec 7, 2019

Aha! I installed in my desktop with Mojave and the behavior was not as expected. But - I realized if I open the .bib file in the editor, then, the autocomplete starts working (I can type an author name, part of the title, etc. and all the relevant bib entries appear). So - either the package should be fixed to load the bib files in the repo - or the documentation should be updated to make it clear the user needs to open the bib file to get it to work properly. If I knew how to do the modification to get it to load all the bib files, I would, but I am not so familiar with java script. I'll ask my colleagues, and if I can figure it out, I'll do a fork/pull request.

@hesstobi
Copy link
Owner

Is you bib file in the global path or on the local project folder?

@walkloud
Copy link
Author

walkloud commented Dec 10, 2019 via email

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