Make sure when creating backlinks that any link only appears once
This commit is contained in:
parent
e652d0f47b
commit
51c675aab4
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue