[Misc] Fix candidate list of important documents for ‘db/helm-shortcuts’

Now actions work again.
This commit is contained in:
Daniel - 2019-09-02 12:00:26 +02:00
parent e6a5a8d9cd
commit a33f14f216
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 5 additions and 1 deletions

View File

@ -658,7 +658,11 @@ With given ARG, display files in `db/important-document-path."
(let ((search-path (expand-file-name db/important-documents-path)))
(helm-make-source "Important files" 'helm-source-sync
:candidates (mapcar #'(lambda (file)
(string-remove-prefix search-path file))
;; display only relative path,
;; but keep absolute path for
;; actions
(cons (string-remove-prefix search-path file)
file))
(directory-files-recursively search-path ""))
:action '(("Open externally" . db/system-open)
("Find file" . find-file))))))))