mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-10 07:16:20 -04:00
Make denote-sequence-get-all-files accept optional FILES
This commit is contained in:
parent
ee33e1081c
commit
7d4c194365
|
|
@ -332,10 +332,13 @@ The implied check here has the same meaning as described in
|
|||
With optional FILES only consider those, otherwise use `denote-directory-files'."
|
||||
(delete-dups (append (denote--buffer-file-names) (or files (denote-directory-files)))))
|
||||
|
||||
(defun denote-sequence-get-all-files ()
|
||||
(defun denote-sequence-get-all-files (&optional files)
|
||||
"Return all files in variable `denote-directory' with a sequence.
|
||||
A sequence is a Denote signature that conforms with `denote-sequence-p'."
|
||||
(seq-filter #'denote-sequence-file-p (denote-sequence--get-files)))
|
||||
A sequence is a Denote signature that conforms with `denote-sequence-p'.
|
||||
|
||||
With optional FILES consider only those, otherwise use the return value
|
||||
of `denote-directory-files'."
|
||||
(seq-filter #'denote-sequence-file-p (denote-sequence--get-files files)))
|
||||
|
||||
(defun denote-sequence-get-all-files-with-prefix (sequence &optional files)
|
||||
"Return all files in variable `denote-directory' with prefix SEQUENCE.
|
||||
|
|
|
|||
Loading…
Reference in a new issue