mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-10 07:16:20 -04:00
Mention the SIGNATURE in the docstring of all front matter variables
Thanks to Alan Schmitt for telling me this was missing. It was done in issue 714: <https://github.com/protesilaos/denote/issues/714>.
This commit is contained in:
parent
65f1bbf1de
commit
1004f735b7
17
README.org
17
README.org
|
|
@ -3027,8 +3027,9 @@ The variables which hold the front matter format are:
|
|||
- ~denote-yaml-front-matter~
|
||||
|
||||
These variables have a string value with specifiers that are used by the
|
||||
~format~ function. The formatting operation passes four arguments which
|
||||
include the values of the given entries. If you are an advanced user
|
||||
~format~ function. The formatting operation passes five arguments which
|
||||
include the values of the given entries: =TITLE=, =DATE=, =KEYWORDS=,
|
||||
=IDENTIFIER=, and =SIGNATURE=. If you are an advanced user
|
||||
who wants to edit this variable to affect how front matter is produced,
|
||||
consider using something like =%2$s= to control where the Nth argument
|
||||
is placed.
|
||||
|
|
@ -3053,6 +3054,7 @@ for all variables.
|
|||
#+DATE: %s
|
||||
#+FILETAGS: %s
|
||||
#+IDENTIFIER: %s
|
||||
#+SIGNATURE: %s
|
||||
\n")
|
||||
|
||||
;; Change the order (notice the %N$s notation)
|
||||
|
|
@ -3061,6 +3063,7 @@ for all variables.
|
|||
#+filetags: %3$s
|
||||
#+date: %2$s
|
||||
#+identifier: %4$s
|
||||
#+signature: %5$s
|
||||
\n")
|
||||
|
||||
;; Remove the date
|
||||
|
|
@ -3068,12 +3071,14 @@ for all variables.
|
|||
"#+title: %1$s
|
||||
#+filetags: %3$s
|
||||
#+identifier: %4$s
|
||||
#+signature: %5$s
|
||||
\n")
|
||||
|
||||
;; Remove the date and the identifier
|
||||
(setq denote-org-front-matter
|
||||
"#+title: %1$s
|
||||
#+filetags: %3$s
|
||||
#+signature: %5$s
|
||||
\n")
|
||||
#+end_src
|
||||
|
||||
|
|
@ -6171,22 +6176,22 @@ there will be no corresponding prompt.
|
|||
#+vindex: denote-org-front-matter
|
||||
+ Variable ~denote-org-front-matter~ :: Specifies the Org front
|
||||
matter. It is passed to ~format~ with arguments =TITLE=, =DATE=,
|
||||
=KEYWORDS=, =ID= ([[#h:7f918854-5ed4-4139-821f-8ee9ba06ad15][Change the front matter format]])
|
||||
=KEYWORDS=, =IDENTIFIER=, =SIGNATURE= ([[#h:7f918854-5ed4-4139-821f-8ee9ba06ad15][Change the front matter format]])
|
||||
|
||||
#+vindex: denote-yaml-front-matter
|
||||
+ Variable ~denote-yaml-front-matter~ :: Specifies the YAML (Markdown)
|
||||
front matter. It is passed to ~format~ with arguments =TITLE=,
|
||||
=DATE=, =KEYWORDS=, =ID= ([[#h:7f918854-5ed4-4139-821f-8ee9ba06ad15][Change the front matter format]])
|
||||
=DATE=, =KEYWORDS=, =IDENTIFIER=, =SIGNATURE= ([[#h:7f918854-5ed4-4139-821f-8ee9ba06ad15][Change the front matter format]])
|
||||
|
||||
#+vindex: denote-toml-front-matter
|
||||
+ Variable ~denote-toml-front-matter~ :: Specifies the TOML (Markdown)
|
||||
front matter. It is passed to ~format~ with arguments =TITLE=,
|
||||
=DATE=, =KEYWORDS=, =ID= ([[#h:7f918854-5ed4-4139-821f-8ee9ba06ad15][Change the front matter format]])
|
||||
=DATE=, =KEYWORDS=, =IDENTIFIER=, =SIGNATURE= ([[#h:7f918854-5ed4-4139-821f-8ee9ba06ad15][Change the front matter format]])
|
||||
|
||||
#+vindex: denote-text-front-matter
|
||||
+ Variable ~denote-text-front-matter~ :: Specifies the plain text
|
||||
front matter. It is passed to ~format~ with arguments =TITLE=,
|
||||
=DATE=, =KEYWORDS=, =ID= ([[#h:7f918854-5ed4-4139-821f-8ee9ba06ad15][Change the front matter format]])
|
||||
=DATE=, =KEYWORDS=, =IDENTIFIER=, =SIGNATURE= ([[#h:7f918854-5ed4-4139-821f-8ee9ba06ad15][Change the front matter format]])
|
||||
|
||||
#+findex: denote-date-org-timestamp
|
||||
+ Function ~denote-date-org-timestamp~ :: Format =DATE= using the Org
|
||||
|
|
|
|||
16
denote.el
16
denote.el
|
|
@ -2195,8 +2195,8 @@ Denote file-naming scheme."
|
|||
#+signature: %s
|
||||
\n"
|
||||
"Org front matter.
|
||||
It is passed to `format' with arguments TITLE, DATE, KEYWORDS,
|
||||
ID. Advanced users are advised to consult Info node `(denote)
|
||||
It is passed to `format' with arguments TITLE, DATE, KEYWORDS, ID,
|
||||
SIGNATURE. Advanced users are advised to consult Info node `(denote)
|
||||
Change the front matter format'.")
|
||||
|
||||
(defvar denote-yaml-front-matter
|
||||
|
|
@ -2208,8 +2208,8 @@ identifier: %s
|
|||
signature: %s
|
||||
---\n\n"
|
||||
"YAML (Markdown) front matter.
|
||||
It is passed to `format' with arguments TITLE, DATE, KEYWORDS,
|
||||
ID. Advanced users are advised to consult Info node `(denote)
|
||||
It is passed to `format' with arguments TITLE, DATE, KEYWORDS, ID,
|
||||
SIGNATURE. Advanced users are advised to consult Info node `(denote)
|
||||
Change the front matter format'.")
|
||||
|
||||
(defvar denote-toml-front-matter
|
||||
|
|
@ -2221,8 +2221,8 @@ identifier = %s
|
|||
signature = %s
|
||||
+++\n\n"
|
||||
"TOML (Markdown) front matter.
|
||||
It is passed to `format' with arguments TITLE, DATE, KEYWORDS,
|
||||
ID. Advanced users are advised to consult Info node `(denote)
|
||||
It is passed to `format' with arguments TITLE, DATE, KEYWORDS, ID,
|
||||
SIGNATURE. Advanced users are advised to consult Info node `(denote)
|
||||
Change the front matter format'.")
|
||||
|
||||
(defvar denote-text-front-matter
|
||||
|
|
@ -2233,8 +2233,8 @@ identifier: %s
|
|||
signature: %s
|
||||
---------------------------\n\n"
|
||||
"Plain text front matter.
|
||||
It is passed to `format' with arguments TITLE, DATE, KEYWORDS,
|
||||
ID. Advanced users are advised to consult Info node `(denote)
|
||||
It is passed to `format' with arguments TITLE, DATE, KEYWORDS, ID,
|
||||
SIGNATURE. Advanced users are advised to consult Info node `(denote)
|
||||
Change the front matter format'.")
|
||||
|
||||
(defun denote-format-string-for-md-front-matter (s)
|
||||
|
|
|
|||
Loading…
Reference in a new issue