Bug 207590

Summary: Why citation auto-completion need a project?
Product: [Applications] kile Reporter: Ronaldo Reis Júnior <chrysopa>
Component: generalAssignee: Michel Ludwig <michel.ludwig>
Status: REPORTED ---    
Severity: wishlist CC: cordlandwehr, tprotopopescu
Priority: NOR    
Version First Reported In: 2.0.83   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ronaldo Reis Júnior 2009-09-16 16:12:25 UTC
Version:           2.0.83 (using 4.3.1 (KDE 4.3.1), Debian packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.30-1-686

Hi,

I dont understand why I need a project to make the \cite{} to use auto-completion citation key from my bibtex database. It make some problems that is recursive in kile. Sometimes it is fixed but in new versions it go back. 

I think that is more simple kile search a document for a \bibliography command and get the string inside bibliography to search the bibliography for citation.

If I have:

\bibliography{/home/ronaldo/mybib.bib} 

kile use mybib.bib to find citation key. If I have:

\bibliography{mybib.bib} 

kile use mybib.bib that is in the same directory that my tex to find the citation key.

If I use a environment BIBINPUTS, kile find the mybib.bib inside the BIBINPUTS directory, unless that I put ./mybib.bib, in this case kile dont look in BIBINPUTS.

In this way I dont need to create a project file.

Thanks
Ronaldo
Comment 1 Andreas Cord-Landwehr 2012-04-16 16:34:41 UTC
*** Bug 234897 has been marked as a duplicate of this bug. ***
Comment 2 Tudor Protopopescu 2014-04-04 23:27:48 UTC
I would find this feature (making citation auto-completion independent of projects) very useful. Most of the things I write use only one source file, and so  making a project is rather redundant in terms of workflow, except for the citation completion. 

If it were possible to get citations from the content of either \bibliography{} or \addbibresource{} it would also solve the problem that citation autocompletion does not fully work with biblatex, see bug 307437 https://bugs.kde.org/show_bug.cgi?id=307437