branch: externals/denote
commit ab626b36b981ff60bcedc78ffa77e1d05456e6ed
Author: Elias Storms <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    denote-org-dblock: use read-regexp
    
    Replace read-string with read-regexp and use the same history as
    'denote-link--add-links-history'.
---
 denote-org-dblock.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/denote-org-dblock.el b/denote-org-dblock.el
index 081be15758..0028c54d41 100644
--- a/denote-org-dblock.el
+++ b/denote-org-dblock.el
@@ -81,10 +81,8 @@
 (defun denote-org-dblock-insert-links (regexp)
   "Create Org dynamic block to insert Denote links matching REGEXP."
   (interactive
-   ;; TODO 2022-11-10: Should we make this a `read-regexp' as is the
-   ;; case with `denote-link-add-missing-links'?  Also add the
-   ;; minibuffer history.
-    (list (read-string "Search for (include _ for keyword): ")))
+    (list
+     (read-regexp "Search for notes matching REGEX: " nil 
'denote-link--add-links-history)))
   (org-create-dblock (list :name "denote-links"
                            :regexp regexp
                            :missing-only 't))

Reply via email to