mirror of
https://codeberg.org/Yael-II/ArXtic.git
synced 2026-03-14 22:06:27 +01:00
2025-11-26: Small update (updated bibstem, nvim)
This commit is contained in:
@@ -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}\""
|
||||
|
||||
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user