From cfa1913e70ac5dc60939750e27c5ebf9637415d7 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Fri, 9 Mar 2018 16:30:57 +0100 Subject: Use .bib extension when editing Bibtex data --- bibtool/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bibtool/cli.py b/bibtool/cli.py index 8f29588..3056933 100644 --- a/bibtool/cli.py +++ b/bibtool/cli.py @@ -34,7 +34,8 @@ def _import(filename, directory, delete): entry = bibtex_data.entries[0] click.echo('Found one Bibtex entry: ' + entry['ID']) if click.confirm('Do you want to edit the entry?'): - edited_data = click.edit(bibtexparser.dumps(bibtex_data)) + edited_data = click.edit(bibtexparser.dumps(bibtex_data), + extension='.bib') if edited_data: bibtex_data = bibtexparser.loads(edited_data) if len(bibtex_data.entries) != 1: -- cgit v1.2.3