apcshields / autocomplete-bibtex

Adds Pandoc-style BibTeX citation key autocompletion to autocomplete+ for Atom.
MIT License
44 stars 17 forks source link

Usage with files other than .md #45

Closed franvillamil closed 7 years ago

franvillamil commented 9 years ago

Is there any way to use the package with files different than .md? In particular, I'd like it to activate itself with .tex files as well. By the way, great job! Thanks a lot!

apcshields commented 9 years ago

Francisco,

Yes, you can edit the 'scope' configuration setting to match the scope you'd like autocomplete-bibtex to be triggered in. I don't know the appropriate scope for tex files off the top of my head, and I'm traveling without my computer at the moment, so I can't figure it out, but you should be able to find it using the information in this documentation. I would expect it to be something like .source.tex.

When I'm back home again, if you're still having trouble, I'll be happy to help you out!

Thanks!

Andrew

— Sent from Mailbox

On Fri, Oct 23, 2015 at 4:10 AM, Francisco Villamil notifications@github.com wrote:

Is there any way that to use itwith files different than .md? In particular, I'd like it to activate itself with .tex files as well. By the way, great job! Thanks a lot!

Reply to this email directly or view it on GitHub: https://github.com/apcshields/autocomplete-bibtex/issues/45

franvillamil commented 9 years ago

Thanks Andrew! It is solved, the scope was ".text.tex.latex", so my settings now are

scope: ".source.gfm, .text.tex.latex"
apcshields commented 9 years ago

Great!

Strange that Markdown is considered 'source', but LaTeX is considered 'text'....

— Sent from Mailbox

On Sat, Oct 24, 2015 at 5:53 AM, Francisco Villamil notifications@github.com wrote:

Thanks Andrew! It is solved, the scope was ".text.tex.latex", so my settings now are

scope: ".source.gfm, .text.tex.latex"

Reply to this email directly or view it on GitHub: https://github.com/apcshields/autocomplete-bibtex/issues/45#issuecomment-150779953

tpoisot commented 9 years ago

I also added .text.md to add support to the language-markdown package.

mangecoeur commented 7 years ago

closed by latest release