(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

@@ -306,6 +306,9 @@ extraction methods supported are:
3. ='last-directory=: Extracts the last directory relative to
=org-roam-directory= as the tag. That is, if a file is located at relative
path =foo/bar/file.org=, the file will have tag =bar=.
4. ='first-directory=: Extracts the first directory relative to
=org-roam-directory= as the tag. That is, if a file is located at relative
path =foo/bar/file.org=, the file will have tag =foo=.
By default, only the ='prop= extraction method is enabled. To enable the other
extraction methods, you may modify =org-roam-tag-sources=:

View File

@@ -468,6 +468,10 @@ extracted as tags. That is, if a file is located at relative path
@samp{'last-directory}: Extracts the last directory relative to
@samp{org-roam-directory} as the tag. That is, if a file is located at relative
path @samp{foo/bar/file.org}, the file will have tag @samp{bar}.
@item
@samp{'first-directory}: Extracts the first directory relative to
@samp{org-roam-directory} as the tag. That is, if a file is located at relative
path @samp{foo/bar/file.org}, the file will have tag @samp{foo}.
@end enumerate
By default, only the @samp{'prop} extraction method is enabled. To enable the other