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?
to your account
The docstring and manual for ivy-read say that its action argument is a function that takes a string as its argument, e.g.:
ACTION is a function to call after selecting a candidate.
It takes the candidate, which is a string, as its only argument.
But if the collection is an alist, the action function receives the entire cons as its argument, not only the key string.
This is misleading, but it's also a minor barrier to entry. For example, I thought that I would have to do the assoc myself based on the string, while Ivy actually handles that itself.
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
ivy.el (ivy-read): Fix docstring
The ACTION arg is a cons cell for an alist COLLECTION.
No branches or pull requests