2025-11-26: Small update (updated bibstem, nvim)

This commit is contained in:
Moussouni, Yaël
2025-11-26 16:52:48 +01:00
parent 7bdbeb5a47
commit 7edf3445fe
2 changed files with 6 additions and 1 deletions

View File

@@ -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}\""

View File

@@ -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"])