From 4b09cbb8837491bb7e32b64d4b222393cfd2e435 Mon Sep 17 00:00:00 2001 From: jethrokuan Date: Fri, 19 Jun 2020 10:24:18 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20f16de?= =?UTF-8?q?357a6360fa0bc098707ffdc71b932d311da=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manual/Tags.html | 3 +++ org-roam.org | 3 +++ org-roam.texi | 4 ++++ 3 files changed, 10 insertions(+) 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
  • '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’. +
  • '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 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