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

Add an option for length for `counsel-more-chars`? #1663

whatacold opened this issue Jul 13, 2018 · 2 comments


Copy link

commented Jul 13, 2018


I use counsel-ag/counsel-rg quite a lot, for most of the time, it works really well.

But sometimes I do need to search for something which has only 2 or even 1 character as keyword,
then I can't figure out how to let them work.

Due to the hard coded length for counsel-more-chars, it seems there is no way to work, if I understand correctly:

$ ag counsel-more-chars
48:(defun counsel-more-chars (n)
1278:      (counsel-more-chars 3)
1421:      (counsel-more-chars 3)
1592:      (counsel-more-chars 3)
2185:      (counsel-more-chars 3)
2433:      (counsel-more-chars 3)
2595:      (counsel-more-chars 2)
2718:      (counsel-more-chars 3)

Would you like to add an option for this length?



This comment has been minimized.

Copy link

commented Jul 13, 2018

Thanks, you can now use counsel-more-chars-alist to customize the amount of chars.


This comment has been minimized.

Copy link
Contributor Author

commented Jul 14, 2018

Cool, thanks you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.