branch: externals/consult-denote
commit b29150109bcb6c7efa1a88ea2b6adad3e42624c8
Author: Protesilaos Stavrou <i...@protesilaos.com>
Commit: Protesilaos Stavrou <i...@protesilaos.com>

    Add command consult-denote-open
---
 consult-denote.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/consult-denote.el b/consult-denote.el
index 86f99206dd..9ed324d1de 100644
--- a/consult-denote.el
+++ b/consult-denote.el
@@ -114,6 +114,13 @@ aforementioned function."
   (let ((default-directory denote-directory))
     (funcall-interactively consult-denote-find-command)))
 
+;;;###autoload
+(defun consult-denote-open ()
+  "Find a file in the variable `denote-directory'."
+  (declare (interactive-only t))
+  (interactive)
+  (find-file (consult-denote-file-prompt)))
+
 ;;;; Integrate with denote.el
 
 (defvar consult-denote-buffer-history nil)

Reply via email to