summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bibtool/cli.py3
1 files changed, 2 insertions, 1 deletions
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: