diff --git a/src/local_api.py b/src/local_api.py index 1cfed2f..1d42847 100644 --- a/src/local_api.py +++ b/src/local_api.py @@ -117,6 +117,11 @@ def update_local_pdf(library=None, directory=PDF_DIR): volume = fields[3] page = fields[4] if bibstem == "AA": bibstem = "A&A" + if bibstem == "AAS": bibstem = "A&AS" + if bibstem == "AARv": bibstem = "A&ARv" + if bibstem == "AAC": bibstem = "A&AC" + if bibstem == "AAA": bibstem = "A&AA" + if bibstem == "ARAA": bibstem = "ARA&A" query=(f"first_author:\"{first_author}\"" f"year:({year})" f"bibstem:\"{bibstem}\"" diff --git a/src/utils.py b/src/utils.py index 1d241d5..56f4db4 100644 --- a/src/utils.py +++ b/src/utils.py @@ -404,7 +404,7 @@ def arxtic_comment(key, library): comment = block["arxtic_comment"] with open("comment.tmp", "w+") as file: file.write(comment) - subprocess.run(["nvim", "comment.tmp"]) + subprocess.run(["nvim", "-c", "set syntax=markdown", "-c", "set cc=", "comment.tmp"]) with open("comment.tmp", "r") as file: comment = "".join(file.readlines()) subprocess.run(["rm", "comment.tmp"])