(feat): add 'first-directory option for org-roam-tag-sources (#851)

Co-authored-by: Jethro Kuan <jethrokuan95@gmail.com>
This commit is contained in:
Alexey Shmalko
2020-06-19 13:22:52 +03:00
committed by GitHub
parent abd81918e1
commit f16de357a6
5 changed files with 38 additions and 2 deletions

View File

@ -211,6 +211,20 @@
:to-equal
'("deeply")))
(it "extracts from first directory"
(expect (test #'org-roam--extract-tags-first-directory
"base.org")
:to-equal
nil)
(expect (test #'org-roam--extract-tags-first-directory
"tags/tag.org")
:to-equal
'("tags"))
(expect (test #'org-roam--extract-tags-first-directory
"nested/deeply/deeply_nested_file.org")
:to-equal
'("nested")))
(describe "uses org-roam-tag-sources correctly"
(it "'(prop)"
(expect (let ((org-roam-tag-sources '(prop)))