aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorlukeflo2025-07-07 15:17:19 +0200
committerlukeflo2025-07-07 15:17:19 +0200
commitd55cfd8617410545335aeaf895120044c46dde45 (patch)
treebb4a41d32a3715610b8429047a12ec9a6540ee08 /tests
parent2e4ae7a05a73cb1df63343e14fbb8a5fd3c7bf41 (diff)
parentc0970da999e222cadbcc2242fb67686ed5b00ca4 (diff)
downloadbibiman-d55cfd8617410545335aeaf895120044c46dde45.tar.gz
bibiman-d55cfd8617410545335aeaf895120044c46dde45.zip
Merge pull request 'bibnotes' (#49) from bibnotes into main
- connect bibentries with notes through citekey<>basename matching - use multiple file extensions for note files (plain-text heavily recommended) - create notes for bibentries inside notes dir - use custom symbols as marker for files/links/notes attached to a bibentry
Diffstat (limited to 'tests')
-rw-r--r--tests/biblatex-test.bib12
-rw-r--r--tests/note-files/aristotle_physics.md0
-rw-r--r--tests/note-files/aristotle_poetics.txt1
-rw-r--r--tests/note-files/aristotle_rhetoric.md0
-rw-r--r--tests/note-files/augustine.md8
-rw-r--r--tests/note-files/bertram.txt1
-rw-r--r--tests/note-files/doody.md0
-rw-r--r--tests/pdf-files/annotated-pdfs/ARIStotle_rheTORIC.PDF (renamed from tests/pdf-files/annotated-pdfs/ARIStotle:rheTORIC.PDF)bin25294 -> 25294 bytes
-rw-r--r--tests/pdf-files/aristotle_physics.pdf (renamed from tests/pdf-files/aristotle:physics.pdf)bin25294 -> 25294 bytes
-rw-r--r--tests/pdf-files/aristotle_rhetoric.pdf (renamed from tests/pdf-files/aristotle:rhetoric.pdf)bin25294 -> 25294 bytes
-rw-r--r--tests/pdf-files/aristotle_rhetoric.txt0
-rw-r--r--tests/test-config.toml21
12 files changed, 35 insertions, 8 deletions
diff --git a/tests/biblatex-test.bib b/tests/biblatex-test.bib
index 4071dcb..692375e 100644
--- a/tests/biblatex-test.bib
+++ b/tests/biblatex-test.bib
@@ -9,7 +9,7 @@
model of particle physics.},
}
-@collection{matuz:doody,
+@collection{matuz_doody,
title = {Contemporary Literary Criticism},
year = {1990},
location = {Detroit},
@@ -54,7 +54,7 @@
field},
}
-@book{aristotle:anima,
+@book{aristotle_anima,
title = {De Anima},
author = {Aristotle},
location = {Cambridge},
@@ -68,7 +68,7 @@
editor}},
}
-@book{aristotle:physics,
+@book{aristotle_physics,
title = {Physics},
shorttitle = {Physics},
author = {Aristotle},
@@ -84,7 +84,7 @@
annotation = {A \texttt{book} entry with a \texttt{translator} field},
}
-@book{aristotle:poetics,
+@book{aristotle_poetics,
title = {Poetics},
shorttitle = {Poetics},
author = {Aristotle},
@@ -100,7 +100,7 @@
editor} as well as a \texttt{series} field},
}
-@mvbook{aristotle:rhetoric,
+@mvbook{aristotle_rhetoric,
title = {The Rhetoric of {Aristotle} with a commentary by the late {Edward
Meredith Cope}},
shorttitle = {Rhetoric},
@@ -441,7 +441,7 @@
@string{pup = {Princeton University Press}}
-@incollection{westfahl:space,
+@incollection{westfahl_space,
title = {The True Frontier},
author = {Westfahl, Gary},
pages = {55--65},
diff --git a/tests/note-files/aristotle_physics.md b/tests/note-files/aristotle_physics.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/note-files/aristotle_physics.md
diff --git a/tests/note-files/aristotle_poetics.txt b/tests/note-files/aristotle_poetics.txt
new file mode 100644
index 0000000..a156c76
--- /dev/null
+++ b/tests/note-files/aristotle_poetics.txt
@@ -0,0 +1 @@
+Here some very boring information regarding Aristotle
diff --git a/tests/note-files/aristotle_rhetoric.md b/tests/note-files/aristotle_rhetoric.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/note-files/aristotle_rhetoric.md
diff --git a/tests/note-files/augustine.md b/tests/note-files/augustine.md
new file mode 100644
index 0000000..7af8fa6
--- /dev/null
+++ b/tests/note-files/augustine.md
@@ -0,0 +1,8 @@
+---
+title: Notes about Augustine
+author: Great scholar
+---
+
+# Augustine
+
+A crazy dude writing some interesting stuff
diff --git a/tests/note-files/bertram.txt b/tests/note-files/bertram.txt
new file mode 100644
index 0000000..54d31e5
--- /dev/null
+++ b/tests/note-files/bertram.txt
@@ -0,0 +1 @@
+A simple text file with notes about this Betram dude
diff --git a/tests/note-files/doody.md b/tests/note-files/doody.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/note-files/doody.md
diff --git a/tests/pdf-files/annotated-pdfs/ARIStotle:rheTORIC.PDF b/tests/pdf-files/annotated-pdfs/ARIStotle_rheTORIC.PDF
index 6aaba88..6aaba88 100644
--- a/tests/pdf-files/annotated-pdfs/ARIStotle:rheTORIC.PDF
+++ b/tests/pdf-files/annotated-pdfs/ARIStotle_rheTORIC.PDF
Binary files differ
diff --git a/tests/pdf-files/aristotle:physics.pdf b/tests/pdf-files/aristotle_physics.pdf
index 6aaba88..6aaba88 100644
--- a/tests/pdf-files/aristotle:physics.pdf
+++ b/tests/pdf-files/aristotle_physics.pdf
Binary files differ
diff --git a/tests/pdf-files/aristotle:rhetoric.pdf b/tests/pdf-files/aristotle_rhetoric.pdf
index 6aaba88..6aaba88 100644
--- a/tests/pdf-files/aristotle:rhetoric.pdf
+++ b/tests/pdf-files/aristotle_rhetoric.pdf
Binary files differ
diff --git a/tests/pdf-files/aristotle_rhetoric.txt b/tests/pdf-files/aristotle_rhetoric.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/pdf-files/aristotle_rhetoric.txt
diff --git a/tests/test-config.toml b/tests/test-config.toml
index 6d05b64..1d29043 100644
--- a/tests/test-config.toml
+++ b/tests/test-config.toml
@@ -4,7 +4,7 @@
bibfiles = [ "tests/biblatex-test.bib" ]
## Default editor to use when editing files. Arguments are possible
-# editor = "vim" # with args: "vim -y"
+editor = "vim" # with args: "vim -y"
## Default app to open PDFs/Epubs
# pdf_opener = "xdg-open"
@@ -19,7 +19,18 @@ file_prefix = "/some/path/prefix"
## Path to folder (with subfolders) containing PDF files with the basename
## of the format "citekey.pdf". Other PDF basenames are not accepted.
## Use absolute paths (~ for HOME works). Otherwise, loading might not work.
-pdf_path = "~/Documents/coding/projects/bibiman/tests/pdf-files"
+pdf_path = "tests/pdf-files"
+
+## Path to folder (with subfolders) containing note files with the basename of
+## the format "citekey.extension". Other basenames are not accepted. The possible
+## extensions can be set through the "note_extensions" array.
+note_path = "tests/note-files"
+note_extensions = [ "md", "txt" ]
+
+## Symbols/chars to show if not has specific attachement
+file_symbol = " "
+link_symbol = "󰌹 "
+note_symbol = "󰧮"
# [colors]
## Default values for dark-themed terminal
@@ -37,3 +48,9 @@ pdf_path = "~/Documents/coding/projects/bibiman/tests/pdf-files"
# bar_bg_color = "234"
# popup_bg_color = "234"
# selected_row_bg_color = "237"
+# note_color = "123"
+# file_color = "209"
+# link_color = "27"
+# author_color = "38"
+# title_color = "37"
+# year_color = "135"