mach try fuzzy search is too fuzzy
Categories
(Developer Infrastructure :: Try, enhancement)
Tracking
(firefox67 fixed)
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: sfink, Assigned: ahal)
Details
Attachments
(1 file)
Updated•7 years ago
|
Updated•7 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Sorry I missed this. There's a decent chance you figured this out already, but for others who stumble upon this..
You can prefix a term with ' to make it an exact match. So for example:
asdf 'spider
The first term (asdf) will be a regular fuzzy match. The second one will only match tasks that have the substring "spider". You can reverse the behaviour of ' by setting FZF_DEFAULT_OPTS=--exact. In this mode, the first term (asdf) will be an exact match, and the second one (spider) will be fuzzy.
I know :jgraham wants --exact to be the default behaviour. I'm a bit on the fence about it though (mostly due to disrupting people's workflows and saved queries).
Reporter | ||
Comment 2•6 years ago
|
||
Yeah, thanks. I did figure it out, though I didn't know about the FZF_DEFAULT_OPTS=--exact trick. I definitely would have preferred that default, but at this point I think I agree that the current behavior is too entrenched and it would be too confusing to change. I'm resigned to train myself to use ' especially if there are going to be other things using this fzf thing that are going to use the default default.
Comment 3•6 years ago
|
||
I'm a bit on the fence about it though (mostly due to disrupting people's workflows and saved queries).
Do you really expect people to be relying on "asdf" currently matching fuzzily?
Assignee | ||
Comment 4•6 years ago
|
||
(In reply to Steve Fink [:sfink] [:s:] from comment #2)
Yeah, thanks. I did figure it out, though I didn't know about the FZF_DEFAULT_OPTS=--exact trick. I definitely would have preferred that default, but at this point I think I agree that the current behavior is too entrenched and it would be too confusing to change. I'm resigned to train myself to use ' especially if there are going to be other things using this fzf thing that are going to use the default default.
We should at least make --exact
a top-level argument to mach try fuzzy so that people can set up an alias more easily without knowing the magic incantation.
(In reply to Mike Hommey [:glandium] from comment #3)
Do you really expect people to be relying on "asdf" currently matching fuzzily?
The breaking workflows statement is more in reference to the fact that 'term will become the new fuzzy match. This will definitely break saved queries and confuse people who have gotten used to typing 'term. It would also make try fuzzy inconsistent with fzf in other areas where fuzzy matching is more appropriate (e.g file system searching).
But to answer your question, I use fuzzy matching all the time (though I understand that it isn't the common use case).
Assignee | ||
Comment 5•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Comment 7•6 years ago
|
||
bugherder |
Updated•3 years ago
|
Description
•