From 08c0dd9b95fd96712c9aa92f2d0716cc72c5548b Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Thu, 8 Apr 2021 17:07:36 +0200 Subject: [PATCH] config/doom/snippets: add book shortcut with links --- .config/doom/snippets/org-mode/reading-list-book | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .config/doom/snippets/org-mode/reading-list-book diff --git a/.config/doom/snippets/org-mode/reading-list-book b/.config/doom/snippets/org-mode/reading-list-book new file mode 100644 index 0000000..89fee2a --- /dev/null +++ b/.config/doom/snippets/org-mode/reading-list-book @@ -0,0 +1,14 @@ +# -*- mode: snippet -*- +# name: Org mode reading list book entry with search links +# key: B +# expand-env: ((yas-wrap-around-region 'nil)) +# -- +INTEREST $1 +:PROPERTIES: +:Author: ${2:+} +:Buch7: https://www.buch7.de/suche?search=${1:$(replace-regexp-in-string " " "+" yas-text)}+${2:$(replace-regexp-in-string " " "+" yas-text)}&bindings%5B%5D=Taschenbuch&bindings%5B%5D=Gebunden&bindings%5B%5D=Leinen+%28Buchleinen%29&bindings%5B%5D=Softcover-Buch&items_per_page=50 +:Amazon: https://smile.amazon.de/s?k=${1:$(replace-regexp-in-string " " "+" yas-text)}+${2:$(replace-regexp-in-string " " "+" yas-text)}&rh=n%3A186606 +:LibErlangen: https://stadtbibliothek-recherche.erlangen.de/Mediensuche/Einfache-Suche?search=${1:$(replace-regexp-in-string " " "+" yas-text)}+${2:$(replace-regexp-in-string " " "+" yas-text)}&top=y&facets=v_____Sachb%C3%BCcher%7CJugendsachbuch%7CJugendroman%7CBuch+Romane%7CSachb%C3%BCcher+Weih.%2fOst&facetsc=_____15 +:Ebay: https://www.ebay.de/sch/i.html?_nkw=${1:$(replace-regexp-in-string " " "+" yas-text)}+${2:$(replace-regexp-in-string " " "+" yas-text)}&_sop=15 +:gebraucht-kaufen: https://www.gebraucht-kaufen.de/f/search?query=${1:$(replace-regexp-in-string " " "+" yas-text)}+${2:$(replace-regexp-in-string " " "+" yas-text)} +:END: \ No newline at end of file