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

Support fzf search syntax #738

Merged
merged 17 commits into from
Aug 16, 2021
Merged

Support fzf search syntax #738

merged 17 commits into from
Aug 16, 2021

Conversation

liuchengxu
Copy link
Owner

@liuchengxu liuchengxu commented Aug 14, 2021

This PR implements most of the fzf-like search syntax. Happy to have some Rust suggestions if you happen to get some time :P @ImmemorConsultrixContrarie .

TODO:

  • [ ] OR operator. I decide this won't be implemented as you can use multiple exact matches instead.

Close #492

截屏2021-08-14 上午11 24 57

@liuchengxu liuchengxu merged commit 4a7e9ba into master Aug 16, 2021
@liuchengxu liuchengxu deleted the fzf-search-syntax branch August 16, 2021 12:31
@fannheyward
Copy link

fannheyward commented Aug 17, 2021

@liuchengxu I've rebuild the maple bin, but still can't search with the syntax:

截屏2021-08-17 上午9 28 58

Fixed with let g:clap_builtin_fuzzy_filter_threshold = 0.

@liuchengxu liuchengxu mentioned this pull request Oct 15, 2021
@zhuzhzh
Copy link

zhuzhzh commented May 24, 2022

can we support fzf-like search by default? now it needs let g:clap_builtin_fuzzy_filter_threshold = 0.

@liuchengxu
Copy link
Owner Author

let g:clap_builtin_fuzzy_filter_threshold = 0 now is required to ensure the search is using the Rust backend instead of the other implementations because the fzf search syntax support is only available when using the Rust binary. Perhaps we can consider making it a default behavior if the Rust executable exists.

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

Successfully merging this pull request may close these issues.

Support fzf like search syntax
3 participants