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

ctrlf-fuzzy: ignore the order of words #70

Closed
irigone opened this issue Dec 22, 2020 · 1 comment
Closed

ctrlf-fuzzy: ignore the order of words #70

irigone opened this issue Dec 22, 2020 · 1 comment

Comments

@irigone
Copy link
Contributor

irigone commented Dec 22, 2020

When searching for the ctrlf-minibuffer-post-command-hook function in the source code, I didn't know the exact function name, so I used consult-line
(swiper but without ivy as a dependency) anddsearched for "command minib". consult-line shows the line. ctrlf-fuzzy-forward does not. IMO ctrlf-fuzzy should ignore the order of words to be fuzzier

@raxod502
Copy link
Member

It's a little tricky to do that since we would have to generalize CTRLF to allow search queries that cannot be expressed as a single regexp. I am somewhat reluctant to do that. It makes sense in the context of consult-line since that command inherently operates on lines, but CTRLF does not operate on lines; it operates (like Isearch) directly on the character stream of the buffer. There can be more than one search result on the same line, and matches can themselves be multiline. I am not sure how the concept of out-of-order matching could reasonably be extended to this paradigm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants