[Helm] Allow specifying separate handler for helm shortcuts

This commit is contained in:
Daniel Borchmann 2017-10-30 20:03:42 +01:00
parent 9278973a62
commit 48c2acde0e
Signed by: exot
GPG Key ID: 4F63DB96D45AA9C6

View File

@ -287,7 +287,10 @@ If FILE is not given, prompt for one."
(defvar db/helm-source-frequently-visited-locations
'((name . "Locations")
(candidates . db/helm-frequently-visited-locations)
(action . (("Open" . find-file)))
(action . (("Open" . (lambda (entry)
(if (consp entry)
(funcall (car entry) (cdr entry))
(find-file entry))))))
(filtered-candidate-transformer . helm-adaptive-sort)))
(defcustom db/important-documents-path "~/Documents/library/"