From 51c675aab43017afc1299ca7a3471447c8e0104e Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 21 Sep 2020 18:10:08 -0700 Subject: Make sure when creating backlinks that any link only appears once --- oni-org/oni-org.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'oni-org') diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el index af80bfd..90dcb8c 100644 --- a/oni-org/oni-org.el +++ b/oni-org/oni-org.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; 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) -- cgit v1.2.3-54-g00ecf