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

Citation autocompletion #14

Closed
HamletGhost opened this issue Jan 20, 2016 · 5 comments
Closed

Citation autocompletion #14

HamletGhost opened this issue Jan 20, 2016 · 5 comments

Comments

@HamletGhost
Copy link

Citation autocompletion does not work for me, maybe because I am not using the compilation interface of this package. When I type \cite{}, a search window (text input box) appears with no options. So far, no bug.
I hit and go on typing, and almost at every letter (depending on how fast I type), that same window steals focus again and again. Any text I type in that window is lost.
Suggested fixes:

  • workaround: implement the option to disable the autocompletion (seems not to have any effect now; no surprise, given the warning in the package description)
  • trigger the autocompletion only once (reset it when the cursor exits the \cite{} scope)
  • copy the text typed in the window into the \cite{} verbatim when it does not match anything
@pbrueske
Copy link

Same goes for me. I am building my document with a Grunt job and use Atom just for editing.
Atom: 1.3.2
Distribution: Ubuntu 14.04

@msiniscalchi
Copy link
Owner

Hi @HamletGhost and @pbrueske .

Hmm... looks like bib files are not found, so completion fails (silently). First of all, to clarify:

  • Completion only works with bibliographies in bib files, not for references provided using the \bibitem command.
  • bib files must be indicated using the usual \bibliography (or \addbibresource) command, specifying the path relative to the tex file (the master tex file, in a multi-file document). So for instance bib files in your texmf tree are not yet supported on Atom (they are on Sublime Text).

Anyway, I have just pushed a couple of commits to master. Ref / cite toggles (Settings) are now honored. Also, if a bib file is not found, the user is informed. These are in master, but not yet in a tagged release. I hope to be able to do a release later today.

In the meantime, can you check your tex file and/or the console to see if bib files are correctly identified? I'm assuming they are not.

@pbrueske
Copy link

@msiniscalchi thanks, adding the .bib file via \addbibresource works for me. 👍

@msiniscalchi
Copy link
Owner

If all is OK (or at least better) now, can I close?

BTW @pbrueske on a different topic, would the ability to integrate your Grunt job with LaTeXTools be useful to you? What I mean is this: when you hit Ctrl-Alt-B, your grunt job runs, then LaTeXTools picks up the log file and displays the errors. The Sublime Text version of the plugin does have this feature (you can redefine the build command), and I was planning to add it to Atom, too.

@pbrueske
Copy link

@msiniscalchi For me its OK to close.

The feature you are describing sounds interesting, but for my current workflow unnecessary. Thanks, anyway ;)

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

3 participants