diff --git a/manual/Tags.html b/manual/Tags.html index 0bed0bd..f0feb2a 100644 --- a/manual/Tags.html +++ b/manual/Tags.html @@ -85,6 +85,9 @@ extracted as tags. That is, if a file is located at relative path
By default, only the ‘'prop’ extraction method is enabled. To enable the other diff --git a/org-roam.org b/org-roam.org index 6d0e308..643b0a6 100644 --- a/org-roam.org +++ b/org-roam.org @@ -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=: diff --git a/org-roam.texi b/org-roam.texi index 639c453..ec1a459 100644 --- a/org-roam.texi +++ b/org-roam.texi @@ -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