mirror of
https://codeberg.org/Yael-II/ArXtic.git
synced 2026-03-15 06:16:26 +01:00
Compare commits
4 Commits
7edf3445fe
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9882f95210 | ||
|
|
14fd449668 | ||
|
|
3e2f3dc139 | ||
|
|
8ab5077587 |
@@ -28,7 +28,7 @@ Finally, you may want to add filters. For each field you want to filter, create
|
||||
|
||||
**ArXtic**
|
||||
|
||||
Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
Copyright (C) 2026 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
#
|
||||
# Licence:
|
||||
# ArXtic
|
||||
# Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
# Copyright (C) 2026 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
#
|
||||
# activate.sh
|
||||
# Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
# Copyright (C) 2026 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
#
|
||||
# Licence:
|
||||
# ArXtic
|
||||
# Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
# Copyright (C) 2026 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
#
|
||||
# arXtic
|
||||
# Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
# Copyright (C) 2026 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
#
|
||||
# Licence:
|
||||
# ArXtic
|
||||
# Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
# Copyright (C) 2026 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
#
|
||||
# general_config.cfg
|
||||
# Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
# Copyright (C) 2026 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -44,3 +44,6 @@ ARXIV_RSS_URL="https://rss.arxiv.org/atom/astro-ph"
|
||||
|
||||
ADSABS_QUERY_URL="https://api.adsabs.harvard.edu/v1/search/query?"
|
||||
ADSABS_EXPORT_URL="https://api.adsabs.harvard.edu/v1/export/bibtexabs/"
|
||||
|
||||
OPT_PDF_READER="sioyek"
|
||||
OPT_TXT_EDITOR="nvim"
|
||||
|
||||
10
requirements.txt
Normal file
10
requirements.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
bibtexparser==2.0.0b8
|
||||
certifi==2025.10.5
|
||||
charset-normalizer==3.4.3
|
||||
feedparser==6.0.12
|
||||
idna==3.10
|
||||
numpy==2.3.3
|
||||
pylatexenc==3.0a33
|
||||
requests==2.32.5
|
||||
sgmllib3k==1.0.0
|
||||
urllib3==2.5.0
|
||||
4
setup.sh
4
setup.sh
@@ -7,10 +7,10 @@
|
||||
#
|
||||
# Licence:
|
||||
# ArXtic
|
||||
# Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
# Copyright (C) 2026 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
#
|
||||
# setup.sh
|
||||
# Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
# Copyright (C) 2026 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -12,10 +12,10 @@ ArXtic queries arXiv and filters the output.
|
||||
|
||||
Licence:
|
||||
ArXtic
|
||||
Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
Copyright (C) 2026 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
|
||||
ads_api.py
|
||||
Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
Copyright (C) 2026 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -12,10 +12,10 @@ ArXtic queries arXiv and filters the output.
|
||||
|
||||
Licence:
|
||||
ArXtic
|
||||
Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
Copyright (C) 2026 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
|
||||
arxiv_api.py
|
||||
Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
Copyright (C) 2026 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -12,10 +12,10 @@ ArXtic queries arXiv and filters the output.
|
||||
|
||||
Licence:
|
||||
ArXtic
|
||||
Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
Copyright (C) 2026 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
|
||||
arxtic.py
|
||||
Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
Copyright (C) 2026 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -12,10 +12,10 @@ ArXtic queries arXiv and filters the output.
|
||||
|
||||
Licence:
|
||||
ArXtic
|
||||
Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
Copyright (C) 2026 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
|
||||
local_api.py
|
||||
Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
Copyright (C) 2026 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
||||
12
src/utils.py
12
src/utils.py
@@ -12,10 +12,10 @@ ArXtic queries arXiv and filters the output.
|
||||
|
||||
Licence:
|
||||
ArXtic
|
||||
Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
Copyright (C) 2026 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
|
||||
utils.py
|
||||
Copyright (C) 2025 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
Copyright (C) 2026 Yaël Moussouni (yael.moussouni@etu.unistra.fr)
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -45,6 +45,9 @@ FILTERS_DIR = os.environ.get("FILTERS_DIR")
|
||||
DB_DIR = os.environ.get("DB_DIR")
|
||||
PDF_DIR = os.environ.get("PDF_DIR")
|
||||
|
||||
OPT_PDF_READER = os.environ.get("OPT_PDF_READER")
|
||||
OPT_TXT_EDITOR = os.environ.get("OPT_TXT_EDITOR")
|
||||
|
||||
COLOUR_DEFAULT = "\033[0m"
|
||||
COLOUR_INPUT = "\033[36m"
|
||||
COLOUR_OUTPUT = "\033[32m"
|
||||
@@ -404,7 +407,8 @@ def arxtic_comment(key, library):
|
||||
comment = block["arxtic_comment"]
|
||||
with open("comment.tmp", "w+") as file:
|
||||
file.write(comment)
|
||||
subprocess.run(["nvim", "-c", "set syntax=markdown", "-c", "set cc=", "comment.tmp"])
|
||||
subprocess.run(OPT_TXT_EDITOR.split(" ") + ["-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"])
|
||||
@@ -489,6 +493,6 @@ def arxtic_filename(key, library, filename):
|
||||
def launch_reader(key, library, directory=PDF_DIR):
|
||||
block = find(key, library)
|
||||
fname = block["arxtic_filename"]
|
||||
subprocess.Popen(["/bin/flatpak", "run", "com.github.ahrm.sioyek", directory+fname],
|
||||
subprocess.Popen(OPT_PDF_READER.split(" ") + [directory+fname],
|
||||
stdout = subprocess.DEVNULL,
|
||||
stderr = subprocess.DEVNULL)
|
||||
|
||||
Reference in New Issue
Block a user