emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote a42019aba8 2/2: Make denote-open-or-create benef


From: ELPA Syncer
Subject: [elpa] externals/denote a42019aba8 2/2: Make denote-open-or-create benefit from 17dc71f
Date: Mon, 24 Oct 2022 01:57:38 -0400 (EDT)

branch: externals/denote
commit a42019aba8155972e10cede0f93be03087f275bb
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Make denote-open-or-create benefit from 17dc71f
---
 denote.el | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index 47a46672d7..13d1024a40 100644
--- a/denote.el
+++ b/denote.el
@@ -1584,10 +1584,18 @@ set to \\='(template title keywords)."
 ;;;###autoload
 (defun denote-open-or-create (target)
   "Visit TARGET file in variable `denote-directory'.
-If file does not exist, invoke `denote' to create a file."
+If file does not exist, invoke `denote' to create a file.
+
+If TARGET file does not exist, add the user input that was used
+to search for it to the minibuffer history of the
+`denote-title-prompt'.  The user can then retrieve and possibly
+further edit their last input, using it as the newly created
+note's actual title.  At the `denote-title-prompt' type
+\\<minibuffer-local-map>\\[previous-history-element]."
   (interactive (list (denote-file-prompt)))
   (if (file-exists-p target)
       (find-file target)
+    (denote--push-extracted-title-to-history)
     (call-interactively #'denote)))
 
 ;;;###autoload



reply via email to

[Prev in Thread] Current Thread [Next in Thread]