texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.75k stars 342 forks source link

parse bibtex entries by any field #1762

Open asetGem opened 2 years ago

asetGem commented 2 years ago

Describe the feature and the current behavior/state

Current behaviour:

When typing \cite{ texstudio shows a popup with a list of bibtex entries, and we can scroll up/down to find the one needed. We can also type the first letter(s) of the bibtex entry to be more specific (it filters the entries to show only the corresponding ones).

Feature:

1) When typing the first letter(s), it is case sensitive. Would it be possible to get all entries starting with those letters, whatever the case?

2) Would it be possible to search inside other fields than bibtex keys, like author and title for example?

Example

For example, if I have the current entry in my .bib file:

@article{Key2017,
abstract = {abstract},
doi = {12345},
journal = {Nature},
month = {may},
pages = {54321},
title = {{This is an original title}},
volume = {8},
author = {firstauthor and author2},
year = {2017}
}

It would be great if we could type, for example:

Who will benefit with this feature?

Everybody using references.

sunderme commented 2 years ago

there are extra programs to manage and insert bibids. Maybe it is better to use those ?

asetGem commented 2 years ago

Do you mean programs like Mendeley or Zotero?

sunderme commented 2 years ago

yes, see also https://github.com/texstudio-org/texstudio-macro/blob/master/zotero-picker/zoteroPicker.txsMacro

asetGem commented 2 years ago

I am using Mendeley to manage my references and generate the .bib, but what I meant here was if texstudio could parse this .bib to allow autocompletion while writing the document.

sunderme commented 2 years ago

I understand. The completer GUI is principally limited in functionality, so coming from the Reference manager gives way better search capabilities.