Skip to content

Commit

Permalink
Merge pull request #140 from rejeep/dont-sort-urls
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienCassou committed May 23, 2022
2 parents 535789e + 6529d24 commit a3be00d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion prodigy.el
Expand Up @@ -827,7 +827,16 @@ If SERVICE defines several URLs, ask the user which one is
preferred."
(-when-let (url (prodigy-url service))
(if (listp url)
(prodigy-completing-read "URL: " url)
(prodigy-completing-read
"URL: "
(lambda (string predicate action)
(if (eq action 'metadata)
;; don't sort candidates so the user can learn their
;; positions by heart:
`(metadata (display-sort-function . ,#'identity)
(cycle-sort-function . ,#'identity))
(complete-with-action
action url string predicate))))
url)))

(defun prodigy-discover-initialize ()
Expand Down

0 comments on commit a3be00d

Please sign in to comment.