[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 1b24d2ed5a 04/17: Simplify denote-format-file-na
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 1b24d2ed5a 04/17: Simplify denote-format-file-name |
Date: |
Thu, 23 Nov 2023 00:57:59 -0500 (EST) |
branch: externals/denote
commit 1b24d2ed5a8d6e45a80c5cc891558eebf0fdff81
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Simplify denote-format-file-name
---
denote.el | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/denote.el b/denote.el
index 90cfed9079..f445705c75 100644
--- a/denote.el
+++ b/denote.el
@@ -1493,14 +1493,13 @@ See `denote--retrieve-locations-in-xrefs'."
"Format file name.
PATH, ID, KEYWORDS, TITLE-SLUG, EXTENSION and optional SIGNATURE
are expected to be supplied by `denote' or equivalent command."
- (let ((kws (denote-keywords-combine keywords))
- (file-name (concat path id)))
+ (let ((file-name (concat path id)))
(when (and signature (not (string-empty-p signature)))
(setq file-name (concat file-name "==" signature)))
(when (and title-slug (not (string-empty-p title-slug)))
(setq file-name (concat file-name "--" title-slug)))
- (when (and keywords (not (string-blank-p kws)))
- (setq file-name (concat file-name "__" kws)))
+ (when keywords
+ (setq file-name (concat file-name "__" (denote-keywords-combine
keywords))))
(concat file-name extension)))
(defun denote--format-front-matter-title (title file-type)
- [elpa] externals/denote ba7561688d 01/17: Remove unnecessary code in denote-trim-* functions and denote-extract-keywords-from-front-matter, (continued)
- [elpa] externals/denote ba7561688d 01/17: Remove unnecessary code in denote-trim-* functions and denote-extract-keywords-from-front-matter, ELPA Syncer, 2023/11/23
- [elpa] externals/denote 8e4a8ee69b 15/17: Refactor denote--link-in-context-regexp, ELPA Syncer, 2023/11/23
- [elpa] externals/denote b5d3ab6e4e 17/17: Merge pull request #193 from jeanphilippegg/cleanups, ELPA Syncer, 2023/11/23
- [elpa] externals/denote 39847ad78b 16/17: Refactor denote--link-format, ELPA Syncer, 2023/11/23
- [elpa] externals/denote 53d52d9d46 07/17: Fix documentation of denote-file-type, ELPA Syncer, 2023/11/23
- [elpa] externals/denote b5810569fe 10/17: Refactor denote--find-first-unused-id, ELPA Syncer, 2023/11/23
- [elpa] externals/denote 01ea1c2cc4 12/17: Remove unnecessary checks, ELPA Syncer, 2023/11/23
- [elpa] externals/denote 3ebc7026d4 11/17: signature should always be a string (maybe empty), ELPA Syncer, 2023/11/23
- [elpa] externals/denote 2d6131085c 06/17: Simplify denote-filetype-heuristics, ELPA Syncer, 2023/11/23
- [elpa] externals/denote 8255dc380f 14/17: Simplify denote-trim-whitespace, ELPA Syncer, 2023/11/23
- [elpa] externals/denote 1b24d2ed5a 04/17: Simplify denote-format-file-name,
ELPA Syncer <=