Skip to content

Allow user-specified candidate sorting #269

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

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

Allow user-specified candidate sorting #269

AnOctopus opened this issue Oct 18, 2015 · 1 comment

Comments

@AnOctopus
Copy link

(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
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants