python-bibtexparser icon indicating copy to clipboard operation
python-bibtexparser copied to clipboard

Select fields for export with BibTexWriter class

Open andrejberg opened this issue 5 years ago • 4 comments

Now a list can be given of fields. Only those fields are returned in BibTexWriter is used to generate a string. This is not exactly what was asked in issue #195 but it should do the job.

andrejberg avatar Feb 05 '20 19:02 andrejberg

Coverage Status

Coverage decreased (-0.05%) to 97.475% when pulling b653424b8cc2a4107ce099eb4e689cc229ba7841 on andrejberg:master into f6b480705598cf5baba09e73e46c8e509f41532f on sciunto-org:master.

coveralls avatar Feb 05 '20 19:02 coveralls

Coverage Status

Coverage decreased (-0.05%) to 97.475% when pulling b653424b8cc2a4107ce099eb4e689cc229ba7841 on andrejberg:master into f6b480705598cf5baba09e73e46c8e509f41532f on sciunto-org:master.

coveralls avatar Feb 05 '20 19:02 coveralls

Interested in this feature as well. Are there any reasons that it is still pending? cc: @sciunto

k4rtik avatar Oct 27 '21 15:10 k4rtik

Hi @andrejberg.

I just joined the project and wanted to give you a quick heads up.

In principle, I like the proposition. However, I am a bit worried that we're starting to overload the writer parameters. If we add this, it won't take long until we'll add an "exclude_fields" besides the here proposed "include_fields", and I see a range of other additions suggested in other issues. Maybe it would be more sustainable if we made this a bit bigger, and added the option to pass in customization functions, similar to the parsing.

I'll thus keep this open for just a bit longer, until a decision on the above was taken.

MiWeiss avatar Jul 09 '22 10:07 MiWeiss

Close as stale: No reaction to previous comments. Also, workaround easily implementable by just modifying the BibTeX database entries directly or by writing a simple customizer on parsing.

MiWeiss avatar Jun 02 '23 12:06 MiWeiss