branch: externals/denote
commit 3a66793dd0370b456591928bbdea5c2296ef7fa5
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Add alias for denote-add-links
---
README.org | 4 ++++
denote.el | 3 +++
2 files changed, 7 insertions(+)
diff --git a/README.org b/README.org
index 05e1a6651f..80b812abe0 100644
--- a/README.org
+++ b/README.org
@@ -3213,6 +3213,7 @@ the active theme).
:END:
#+findex: denote-add-links
+#+findex: denote-link-to-all-files-with-regexp
The command ~denote-add-links~ adds links at point to all file names
in the ~denote-directory~ that match a regular expression or plain
string. This is similar to the ~denote-link~ command, which
@@ -3226,6 +3227,9 @@ as a typographic list, such as:
- link3
#+end_example
+[ The ~denote-link-to-all-files-with-regexp~ is an alias for
+ ~denote-add-links~ as part of {{{development-version}}}. ]
+
Each link is formatted according to the file type of the current note,
as explained further above about the ~denote-link~ command. The current
note is excluded from the matching entries (adding a link to itself is
diff --git a/denote.el b/denote.el
index 70d5177073..92708f5284 100644
--- a/denote.el
+++ b/denote.el
@@ -6561,6 +6561,9 @@ Also see `denote-link-to-all-files-with-contents'."
(denote-link--insert-links files file-type id-only)
(message "No links matching `%s'" regexp))))
+(defalias 'denote-link-to-all-files-with-regexp 'denote-add-links
+ "Alias for `denote-add-links'.")
+
;;;;; Link to file with matching contents
;;;###autoload