From 80867675b3f9881ccfcc3a68dd39c4c59a30a41d Mon Sep 17 00:00:00 2001 From: Mitsuhiro Nakamura Date: Fri, 10 Dec 2021 14:10:18 +0900 Subject: [PATCH] feat: add config spec to exclude bibtex fields --- pubs/config/spec.py | 3 +++ tests/str_fixtures.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/pubs/config/spec.py b/pubs/config/spec.py index b691f80..ee8579d 100644 --- a/pubs/config/spec.py +++ b/pubs/config/spec.py @@ -35,6 +35,9 @@ max_authors = integer(default=3) # the full python stack is printed. debug = boolean(default=False) +# which bibliographic fields to exclude from bibtex files. +bibtex_field_excludes = force_list(default=list()) + [formating] # Enable bold formatting, if the terminal supports it. diff --git a/tests/str_fixtures.py b/tests/str_fixtures.py index d2fbfec..2e79f52 100644 --- a/tests/str_fixtures.py +++ b/tests/str_fixtures.py @@ -138,6 +138,9 @@ edit_cmd = "vim" # the full python stack is printed. debug = False +# which bibliographic fields to exclude from bibtex files. +bibtex_field_excludes = + [formating] # Enable bold formatting, if the terminal supports it.