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

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

[elpa] externals/denote bbd75dd2f3 2/2: Make denote-title-prompt prepopu


From: ELPA Syncer
Subject: [elpa] externals/denote bbd75dd2f3 2/2: Make denote-title-prompt prepopulate the minibuffer if denote-title-prompt-current-default
Date: Tue, 5 Nov 2024 03:58:20 -0500 (EST)

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

    Make denote-title-prompt prepopulate the minibuffer if 
denote-title-prompt-current-default
    
    This makes it easier to edit the text after calling 'denote-open-or-create' 
(and related).
    We do not want to skip the title prompt completely, because the user
    may not necessarily search for a file using a query that is a
    perfectly valid title. For example, with the 'orderless' package set
    up, they may type "title test" to match "This is a test title".
---
 denote.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index 7de6e75eb3..bdd4f30a8c 100644
--- a/denote.el
+++ b/denote.el
@@ -2603,7 +2603,7 @@ non-nil value."
    'denote-title-prompt
    (format-prompt (or prompt-text "New file TITLE") 
denote-title-prompt-current-default)
    denote-title-history
-   initial-title
+   (or initial-title denote-title-prompt-current-default)
    denote-title-prompt-current-default))
 
 (defvar denote-file-type-history nil



reply via email to

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