mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-10 07:16:20 -04:00
Function denote-org-capture-with-prompts updated to accept signature prompt (new try)
This commit is contained in:
parent
be6e713d88
commit
1c3f4042f9
|
|
@ -991,8 +991,7 @@ the date and identifier fields specified. It also makes the file name
|
|||
consist of only the identifier plus the Org file name extension ([[#h:4e9c7512-84dc-4dfb-9fa9-e15d51178e5d][The file-naming scheme]]).
|
||||
|
||||
Otherwise, it produces a minibuffer prompt for every non-nil value
|
||||
that corresponds to the =TITLE=, =KEYWORDS=, =SUBDIRECTORY=, =DATE=,
|
||||
and =TEMPLATE= arguments. The prompts are those used by the standard
|
||||
that corresponds to the =TITLE=, =KEYWORDS=, =SUBDIRECTORY=, =DATE=, =TEMPLATE=, and =SIGNATURE= arguments. The prompts are those used by the standard
|
||||
~denote~ command and all of its utility commands ([[#h:17896c8c-d97a-4faa-abf6-31df99746ca6][Points of entry]]).
|
||||
|
||||
When returning the contents that fill in the Org capture template, the
|
||||
|
|
|
|||
|
|
@ -7033,7 +7033,7 @@ Consult the manual for template samples."
|
|||
;; by passing a single PROMPTS that is the same value as `denote-prompts'?
|
||||
|
||||
;;;###autoload
|
||||
(defun denote-org-capture-with-prompts (&optional title keywords subdirectory date template)
|
||||
(defun denote-org-capture-with-prompts (&optional title keywords subdirectory date template signature)
|
||||
"Like `denote-org-capture' but with optional prompt parameters.
|
||||
|
||||
When called without arguments, do not prompt for anything. Just
|
||||
|
|
@ -7043,8 +7043,7 @@ name consist of only the identifier plus the Org file name
|
|||
extension.
|
||||
|
||||
Otherwise produce a minibuffer prompt for every non-nil value
|
||||
that corresponds to the TITLE, KEYWORDS, SUBDIRECTORY, DATE, and
|
||||
TEMPLATE arguments. The prompts are those used by the standard
|
||||
that corresponds to the TITLE, KEYWORDS, SUBDIRECTORY, DATE, TEMPLATE, SIGNATURE arguments. The prompts are those used by the standard
|
||||
`denote' command and all of its utility commands.
|
||||
|
||||
When returning the contents that fill in the Org capture
|
||||
|
|
@ -7056,6 +7055,7 @@ must exist---Denote does not create them. Same principle for
|
|||
TEMPLATE as templates must exist and are specified in the user
|
||||
option `denote-templates'."
|
||||
(let ((denote-prompts '()))
|
||||
(when signature (push 'signature denote-prompts))
|
||||
(when template (push 'template denote-prompts))
|
||||
(when date (push 'date denote-prompts))
|
||||
(when subdirectory (push 'subdirectory denote-prompts))
|
||||
|
|
|
|||
Loading…
Reference in a new issue