New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow user-specified candidate sorting #269

Closed
AnOctopus opened this Issue Oct 18, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@AnOctopus

AnOctopus commented Oct 18, 2015

(Possibly related to #213 )

It would be very nice to have the ability to specify a sorting function to be applied to the candidates after filtering. In particular, I would like to be able to use flx sorting with the normal regex filter (currently achievable only by ivy--filter directly), but it would be nice to have generally.

@abo-abo

This comment has been minimized.

Show comment
Hide comment
@abo-abo

abo-abo Nov 13, 2015

Owner

Thanks.

For example, you can now use:

(setq ivy-sort-matches-functions-alist
      '((t . ivy--prefix-sort)))
Owner

abo-abo commented Nov 13, 2015

Thanks.

For example, you can now use:

(setq ivy-sort-matches-functions-alist
      '((t . ivy--prefix-sort)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment