[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote-menu f901a2dba5 08/15: fix denote get path by id
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote-menu f901a2dba5 08/15: fix denote get path by id |
Date: |
Thu, 9 Mar 2023 11:00:07 -0500 (EST) |
branch: externals/denote-menu
commit f901a2dba52cc1c764a670411bbf605426ac4039
Author: Mohamed Suliman <sulimanm@tcd.ie>
Commit: Mohamed Suliman <sulimanm@tcd.ie>
fix denote get path by id
---
denote-menu.el | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/denote-menu.el b/denote-menu.el
index 2b25769cce..21326d3384 100644
--- a/denote-menu.el
+++ b/denote-menu.el
@@ -111,9 +111,17 @@ list entry following the defined form. Then updates the
buffer."
presented in the *Denote* buffer."
(mapcar (lambda (entry)
(let ((id (car entry)))
- (denote-get-path-by-id id)))
+ (denote-menu-get-path-by-id id)))
(funcall tabulated-list-entries)))
+(defun denote-menu-get-path-by-id (id)
+ "Return absolute path of ID string in `denote-directory-files'."
+ (seq-find
+ (lambda (f)
+ (and (string-prefix-p id (file-name-nondirectory f))))
+ (denote-directory-files)))
+
+
(defun denote-menu-files-matching-regexp (files regexp)
"Return list of files matching REGEXP from FILES."
(seq-filter (lambda (f) (string-match-p regexp f)) files))
- [elpa] branch externals/denote-menu created (now c9cb089bfa), ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu 05d6d38ee1 02/15: README, screenshots, and fixes, ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu 52ebd5eae4 04/15: fix custom filter example, ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu 7ca56a3cfe 05/15: remove copyright and screenshot, ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu aa92fc2f98 06/15: fix screenshot, ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu d8121e610c 09/15: Make 'list-denotes' alias of 'denote-menu-list-notes', ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu f901a2dba5 08/15: fix denote get path by id,
ELPA Syncer <=
- [elpa] externals/denote-menu 5bc393e6d2 03/15: README typo, ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu 8a490728de 10/15: Change tone of doc strings, ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu f73afbdacb 13/15: fix list-denotes alias and typo in README, ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu 3bd7cf7d12 01/15: initial commit, ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu 6a2cde289b 07/15: add denote requirement, ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu 4a1bbb38f8 11/15: remove all occurences of `denote-get-path-by-id', ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu b3c33b9fd3 12/15: Merge pull request #1 from protesilaos/master, ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu ec8349a77a 14/15: added commentary, ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu c9cb089bfa 15/15: added new user option and unique ids taking file type, ELPA Syncer, 2023/03/09