From 15671bd38fb62e62b8314b5b33117cb0c60da055 Mon Sep 17 00:00:00 2001 From: jethrokuan Date: Fri, 27 Aug 2021 11:46:20 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20cfabe?= =?UTF-8?q?0ec38e1d58c5fc7a795673daca4d141b2ce=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manual.html | 14 +++++++++----- org-roam.org | 14 +++++++++----- org-roam.texi | 14 +++++++++----- 3 files changed, 27 insertions(+), 15 deletions(-) diff --git a/manual.html b/manual.html index 71fd5e8..e3070d6 100644 --- a/manual.html +++ b/manual.html @@ -1273,7 +1273,7 @@ extension in your Org-roam capture templates. For example:

(setq org-roam-capture-templates '(("d" "default" plain "%?"
-     :if-new (file+head "${slug}.org.gpg"
+     :target (file+head "${slug}.org.gpg"
                         "#+title: ${title}\n")
      :unnarrowed t)))
 
@@ -1555,7 +1555,7 @@ of the template are similar to org-capture templates.

(("d" "default" plain "%?"
-  :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org"
+  :target (file+head "%<%Y%m%d%H%M%S>-${slug}.org"
                      "#+title: ${title}\n")
   :unnarrowed t))
 
@@ -1575,8 +1575,12 @@ here.
  • "%?" is the template inserted on each call to org-roam-capture-. This template means don’t insert any content, but place the cursor here. -
  • :if-new is a compulsory specification in the Org-roam capture template. -This indicates the location for the new node. +
  • :target is a compulsory specification in the Org-roam capture +template. The first element of the list indicates the type of the +target, the second element indicates the location of the captured +node, and the rest of the elements indicate prefilled template that +will be inserted and the position of the point will be adjusted for. +The latter behavior various from type to type of the capture target.
  • :unnarrowed t tells org-capture to show the contents for the whole file, rather than narrowing to just the entry. This is part of the Org-capture @@ -1785,7 +1789,7 @@ Next: , Up: -${slug}.org" + :target (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") :unnarrowed t)) #+END_SRC @@ -913,8 +913,12 @@ of the template are similar to ~org-capture~ templates. here. 5. ~"%?"~ is the template inserted on each call to ~org-roam-capture-~. This template means don't insert any content, but place the cursor here. -6. ~:if-new~ is a compulsory specification in the Org-roam capture template. - This indicates the location for the new node. +6. ~:target~ is a compulsory specification in the Org-roam capture template. The + first element of the list indicates the type of the target, the second + element indicates the location of the captured node, and the rest of the + elements indicate prefilled template that will be inserted and the position + of the point will be adjusted for. The latter behavior various from type to + type of the capture target. 7. ~:unnarrowed t~ tells org-capture to show the contents for the whole file, rather than narrowing to just the entry. This is part of the Org-capture templates. @@ -1054,7 +1058,7 @@ Here is a sane default configuration: (setq org-roam-dailies-capture-templates '(("d" "default" entry "* %?" - :if-new (file+head "%<%Y-%m-%d>.org" + :target (file+head "%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d>\n")))) #+end_src diff --git a/org-roam.texi b/org-roam.texi index ed06eff..dc310c8 100644 --- a/org-roam.texi +++ b/org-roam.texi @@ -1062,7 +1062,7 @@ extension in your Org-roam capture templates. For example: @lisp (setq org-roam-capture-templates '(("d" "default" plain "%?" - :if-new (file+head "$@{slug@}.org.gpg" + :target (file+head "$@{slug@}.org.gpg" "#+title: $@{title@}\n") :unnarrowed t))) @end lisp @@ -1305,7 +1305,7 @@ of the template are similar to @code{org-capture} templates. @lisp (("d" "default" plain "%?" - :if-new (file+head "%<%Y%m%d%H%M%S>-$@{slug@}.org" + :target (file+head "%<%Y%m%d%H%M%S>-$@{slug@}.org" "#+title: $@{title@}\n") :unnarrowed t)) @end lisp @@ -1331,8 +1331,12 @@ here. This template means don't insert any content, but place the cursor here. @item -@code{:if-new} is a compulsory specification in the Org-roam capture template. -This indicates the location for the new node. +@code{:target} is a compulsory specification in the Org-roam capture +template. The first element of the list indicates the type of the +target, the second element indicates the location of the captured +node, and the rest of the elements indicate prefilled template that +will be inserted and the position of the point will be adjusted for. +The latter behavior various from type to type of the capture target. @item @code{:unnarrowed t} tells org-capture to show the contents for the whole file, @@ -1519,7 +1523,7 @@ Here is a sane default configuration: (setq org-roam-dailies-capture-templates '(("d" "default" entry "* %?" - :if-new (file+head "%<%Y-%m-%d>.org" + :target (file+head "%<%Y-%m-%d>.org" "#+title: %<%Y-%m-%d>\n")))) @end lisp