Function: denote-sort-dired--get-files
denote-sort-dired--get-files is a byte-compiled function defined in
denote.el.
Signature
(denote-sort-dired--get-files REGEXP COMPONENT REVERSE-SORT EXCLUDE-REGEXP FILES DIRECTORY)
Documentation
Do the work of denote-sort-dired to match and sort the FILES.
Apply REGEXP to narrow FILES and EXCLUDE-REGEXP to omit matches from the resulting list.
If FILES is nil, search for them in the variable denote-directory(var)/denote-directory(fun),
and then collect them relative to DIRECTORY.
At all times, sort by COMPONENT and do REVERSE-SORT if it is non-nil.
Source Code
;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defun denote-sort-dired--get-files (regexp component reverse-sort exclude-regexp files directory)
"Do the work of `denote-sort-dired' to match and sort the FILES.
Apply REGEXP to narrow FILES and EXCLUDE-REGEXP to omit matches from the
resulting list.
If FILES is nil, search for them in the variable `denote-directory',
and then collect them relative to DIRECTORY.
At all times, sort by COMPONENT and do REVERSE-SORT if it is non-nil."
(if files
(setq files (denote-sort-files files component reverse-sort)
files (seq-filter (lambda (file) (string-match-p regexp file)) files)
files (seq-remove (lambda (file) (when exclude-regexp (string-match-p exclude-regexp file))) files))
(mapcar
(lambda (file)
(if (string-prefix-p directory file)
(substring file (length directory))
file))
(denote-sort-get-directory-files regexp component reverse-sort nil exclude-regexp))))