[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 8167d0c30c 091/355: Revert "Stop recording the f
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 8167d0c30c 091/355: Revert "Stop recording the file path in the front matter" |
Date: |
Sun, 26 Jun 2022 23:58:03 -0400 (EDT) |
branch: externals/denote
commit 8167d0c30c677b11e265fd50f4348611be7fd819
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Revert "Stop recording the file path in the front matter"
This reverts commit cfe6e98e7ba3b2779e4748dac92919dee6c21c96.
We actually need it for making links. Perhaps we can find a way to only
rely on the identifier. Will need to check this further.
---
denote.el | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/denote.el b/denote.el
index 01d17297b8..639715639b 100644
--- a/denote.el
+++ b/denote.el
@@ -288,16 +288,18 @@ is specified."
(ext (or extension ".org")))
(format "%s%s--%s--%s%s" path id kws slug ext)))
-(defun denote--file-meta-header (title date keywords id)
+(defun denote--file-meta-header (title date keywords filename id)
"Front matter for new notes.
-TITLE, DATE, KEYWORDS, and ID are all strings which are provided
- by `denote-new-note'."
+TITLE, DATE, KEYWORDS, FILENAME, ID are all strings which are
+ provided by `denote-new-note'."
(let ((kw (denote--keywords-capitalize keywords)))
(concat "#+title: " title "\n"
"#+date: " date "\n"
"#+filetags: " kw "\n"
"#+identifier: " id "\n"
+ "#+filename: " (string-remove-prefix denote-directory filename)
"\n"
+ "#+path: " filename "\n"
"\n\n")))
(defun denote--path (title keywords)
@@ -323,11 +325,11 @@ Format current time, else use optional ID."
(defun denote--prepare-note (title keywords &optional path)
"Use TITLE and KEYWORDS to prepare new note file.
Use optional PATH, else create it with `denote--path'."
- (let* ((default-directory denote-directory)
- (p (or path (denote--path title keywords)))
+ (let* ((p (or path (denote--path title keywords)))
+ (default-directory denote-directory)
(buffer (unless path (find-file p)))
(header (denote--file-meta-header
- title (denote--date) keywords
+ title (denote--date) keywords p
(format-time-string denote--id))))
(unless path
(with-current-buffer buffer (insert header))
- [elpa] externals/denote 69f28cfd29 031/355: Re-indent form, (continued)
- [elpa] externals/denote 69f28cfd29 031/355: Re-indent form, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 06cbd091d1 049/355: Tweak README---this is a work-in-progress, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 9a2c501cd4 051/355: Tweak wording in description, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 712e24465a 065/355: Update denote-dired.el Commentary, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 69e35281da 070/355: Document denote-front-matter-date-format, ELPA Syncer, 2022/06/27
- [elpa] externals/denote dfc3a8fc60 071/355: Use denote-directory rather than hardcoded path, ELPA Syncer, 2022/06/27
- [elpa] externals/denote eee100cc50 062/355: Add denote-dired-rename-file, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 0e65f05bbb 080/355: Use 'delete-region' instead of 'delete-line', ELPA Syncer, 2022/06/27
- [elpa] externals/denote ab27f5a547 086/355: Tweak sample configuration, ELPA Syncer, 2022/06/27
- [elpa] externals/denote f97f1f8b56 082/355: chore: Ignore compiled and autoloads Emacs-Lisp files, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 8167d0c30c 091/355: Revert "Stop recording the file path in the front matter",
ELPA Syncer <=
- [elpa] externals/denote 6227df012f 100/355: Make org-capture always set .org extension, ELPA Syncer, 2022/06/27
- [elpa] externals/denote e840648623 098/355: Fix typo in the manual, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 9f192263db 092/355: Remove file path from front matter; improve links, ELPA Syncer, 2022/06/27
- [elpa] externals/denote db9584f51d 093/355: BREAKING Change date/identifier pattern, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 3e2b560548 099/355: Elaborate on the Overview of Denote, ELPA Syncer, 2022/06/27
- [elpa] externals/denote cfe6e98e7b 090/355: Stop recording the file path in the front matter, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 2bc5df6011 103/355: denote-file-type: 'markdown-yaml', not 'markdown', ELPA Syncer, 2022/06/27
- [elpa] externals/denote d83c166c0d 125/355: Fix regexp for keywords, ELPA Syncer, 2022/06/27
- [elpa] externals/denote ebdacb3fea 073/355: Update doc string of denote-directory function, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 91f4780779 083/355: Merge pull request #3 from kaushalmodi/add-gitignore, ELPA Syncer, 2022/06/27