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

Search only finds exact matches #185

Closed
trapperdot00 opened this issue Feb 26, 2025 · 1 comment
Closed

Search only finds exact matches #185

trapperdot00 opened this issue Feb 26, 2025 · 1 comment

Comments

@trapperdot00
Copy link

The search function requires exact matches, which is a bit inconvenient.

For example, searching for lambda should find Lambda expressions(since C++11) - Lambda expressions (since C++11), but it doesn't:

$ cppman -f "Lambda"
std::experimental::reflect::Lambda - std::experimental::reflect::Lambda
std::experimental::reflect::LambdaCapture - std::experimental::reflect::LambdaCapture
experimental::reflect::Lambda - std::experimental::reflect::Lambda
experimental::reflect::LambdaCapture - std::experimental::reflect::LambdaCapture
Lambda expressions(since C++11) - Lambda expressions (since C++11)
$ cppman -f "lambda"
std::exponential_distribution::lambda - std::exponential_distribution<RealType>::lambda
exponential_distribution::lambda - std::exponential_distribution<RealType>::lambda
@aitjcize
Copy link
Owner

commit c5114d3 addresses this issue, now when there are multiple hits, cppman will present a menu for selection:

$ bin/cppman "Lambda"      
1. std::experimental::reflect::Lambda - std::experimental::reflect::Lambda
2. std::experimental::reflect::LambdaCapture - std::experimental::reflect::LambdaCapture
3. experimental::reflect::Lambda - std::experimental::reflect::Lambda
4. experimental::reflect::LambdaCapture - std::experimental::reflect::LambdaCapture
5. Lambda expressions(since C++11) - Lambda expressions (since C++11)

Please enter the selection: 

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