Do not perform adaptive sorting in personal shortcut helper

This never worked anyway, I would probably have had to define the source
globally for adaptive sorting to work, or something like that.  However, I am
usually happying with the interactive narrowing of the candidates, so let's get
rid of adaptive sorting for now.
This commit is contained in:
Daniel - 2023-10-27 16:31:02 +02:00
parent b3d620d884
commit dae26fcc5a
Signed by: dbo
GPG Key ID: 784AA8DF0CCDF625
1 changed files with 2 additions and 4 deletions

View File

@ -2117,16 +2117,14 @@ is too slow (in this case, `db/important-document-path' should
eventuelly be set to nil, however)."
(interactive "P")
(eval-when-compile
(require 'helm-bookmark)
(require 'helm-for-files)) ; for helm-source-recentf
(require 'helm-bookmark))
(helm :sources (list
(helm-make-source "Frequently Used" 'helm-source-sync
:candidates (mapcar #'(lambda (entry)
(cons (car entry)
(caddr entry)))
db/frequently-used-features)
:action '(("Open" . call-interactively))
:filtered-candidate-transformer #'helm-adaptive-sort)
:action '(("Open" . call-interactively)))
;; Taken from `helm-buffers-list'
(helm-make-source "Buffers" 'helm-source-buffers)