From 7edf3445fe467decc1cf4adaf9bd6081d08078f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moussouni=2C=20Ya=C3=ABl?= Date: Wed, 26 Nov 2025 16:52:48 +0100 Subject: [PATCH] 2025-11-26: Small update (updated bibstem, nvim) --- src/local_api.py | 5 +++++ src/utils.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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"])