[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 7674c6f854 170/355: Retrieve identifier from fil
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 7674c6f854 170/355: Retrieve identifier from filename alone |
Date: |
Sun, 26 Jun 2022 23:58:19 -0400 (EDT) |
branch: externals/denote
commit 7674c6f854027b0c1a714361c252465340e1ee38
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Retrieve identifier from filename alone
---
denote-retrieve.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/denote-retrieve.el b/denote-retrieve.el
index 105956d0b9..79e3cb5fe7 100644
--- a/denote-retrieve.el
+++ b/denote-retrieve.el
@@ -44,6 +44,14 @@ group 1.")
The match that needs to be extracted is explicityly marked as
group 1.")
+(defun denote-retrieve--filename-identifier (file)
+ "Extract identifier from FILE name."
+ (if (file-exists-p file)
+ (progn
+ (string-match denote--id-regexp file)
+ (match-string 0 file))
+ (error "Cannot find `%s' as a file" file)))
+
(defun denote-retrieve--search (regexp)
"Search for REGEXP in the current buffer."
(save-excursion
- [elpa] externals/denote bc93a8ecda 137/355: Update the manual on the matter of backlinks, (continued)
- [elpa] externals/denote bc93a8ecda 137/355: Update the manual on the matter of backlinks, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 45bea4166a 158/355: Update Acknowledgements, ELPA Syncer, 2022/06/27
- [elpa] externals/denote d4cbb974a5 157/355: Rewrite node on multi file types (due to b42f68c), ELPA Syncer, 2022/06/27
- [elpa] externals/denote 479899d973 162/355: Clarify wording about journal/diary extras, ELPA Syncer, 2022/06/27
- [elpa] externals/denote e9bc790675 167/355: Clarify that auto-backlinks may be removed, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 4bc7aa4dfd 166/355: Remove outdated doc string from private function, ELPA Syncer, 2022/06/27
- [elpa] externals/denote d9f439e47f 173/355: Add helper function to prepare completion table, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 91090d42c6 180/355: Fix regexp match for backlinks, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 768372281f 177/355: Fix formatting typo, ELPA Syncer, 2022/06/27
- [elpa] externals/denote a47f32ec71 184/355: Implement new backlink facility, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 7674c6f854 170/355: Retrieve identifier from filename alone,
ELPA Syncer <=
- [elpa] externals/denote e783662363 159/355: Tweak sample configuration, ELPA Syncer, 2022/06/27
- [elpa] externals/denote fc9f909061 179/355: Change denote--id to denote--id-format, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 4a5ba1603a 190/355: Document how to write metanotes, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 92a4ff20b6 192/355: Remove obsolete description from doc string, ELPA Syncer, 2022/06/27
- [elpa] externals/denote ebd14ebbd6 187/355: Change placement of maxdepth argument for find, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 979bf352d6 208/355: Clarify requirements for good front matter value, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 0db5be04be 213/355: Use new helper FN for title value in links, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 31fc567702 209/355: Accept optional filetype in front matter formatter, ELPA Syncer, 2022/06/27
- [elpa] externals/denote b64cc491bc 199/355: Add history to denote-link-add-links command, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 4041e437b2 214/355: Add PROTOTYPE of front matter rewrite post-rename, ELPA Syncer, 2022/06/27