1
0
Fork 0

Make sure when creating backlinks that any link only appears once

This commit is contained in:
Tom Willemse 2020-09-21 18:10:08 -07:00
parent e652d0f47b
commit 51c675aab4

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
;; Version: 2020.0921.142856
;; Version: 2020.0921.154031
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org-plus-contrib org-bullets org-edna diminish all-the-icons)
;; This program is free software; you can redistribute it and/or modify
@ -200,7 +200,7 @@ _l_: Store link ^^ _j_: Journal entry
(insert (string-join
(mapcar (lambda (link)
(concat "- [[*" link "][" link "]]"))
(sort backlinks #'string<))
(sort (seq-uniq backlinks #'string=) #'string<))
"\n"))))
(defalias 'org-dblock-write:oni-backlinks 'oni-org-dblock-write-backlinks)