Skip to content

Exit completion when only one candidate is left? #859

Answered by gtms
gtms asked this question in Q&A
Discussion options

You must be logged in to vote

@oantolin sweet! It works :)

For the sake of completness:

(defun bookmark-jump-headlong (bookmark)
  "Jump to BOOKMARK headlong."
  (interactive
   (progn
     (require 'bookmark)
     (list (minibuffer-with-setup-hook #'headlong
             (consult--read
              (seq-sort-by #'identity #'string< (bookmark-all-names))
              :sort nil)))))
  (bookmark-jump bookmark))

@minad & @oantolin: many thanks to both of you for your feedback & congrats on the superb work :)

Replies: 6 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@minad
Comment options

minad Oct 4, 2023
Maintainer

Comment options

You must be logged in to vote
5 replies
@gtms
Comment options

@oantolin
Comment options

@minad
Comment options

minad Oct 4, 2023
Maintainer

@oantolin
Comment options

@gtms
Comment options

Comment options

You must be logged in to vote
1 reply
@minad
Comment options

minad Oct 4, 2023
Maintainer

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@minad
Comment options

minad Oct 4, 2023
Maintainer

@gtms
Comment options

@oantolin
Comment options

@gtms
Comment options

Answer selected by gtms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants