Skip to content
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
Closed

Allow user-specified candidate sorting #269

AnOctopus opened this issue Oct 18, 2015 · 1 comment

Comments

@AnOctopus
Copy link

@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
Copy link
Owner

@abo-abo 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.