fzf
fzf copied to clipboard
feature request: add a truely 'exact' match to extended search mode
- [x] I have read through the manual page (
man fzf
) - [x] I have the latest version of fzf
- [x] I have searched through the existing issues
Info
- OS
- [x] Linux
- [ ] Mac OS X
- [ ] Windows
- [ ] Etc.
- Shell
- [ ] bash
- [x] zsh
- [ ] fish
Problem / Steps to reproduce
You start any search in extended search mode with either case-insensative or smart-case (default). You type a word and then realize that your next search term needs to be case-sensitive. You then look at the extended search mode section of the man page and try to use a single quote before your search term, expecting it to be an "exact match". You soon discover that the manual's usage of the term "exact match" really only means "non-fuzzy", not exact. Exact should include case-sensitivity. I now have no other option but to restart fzf in case-sensitive mode.
Unless there's some other way to enforce the case-sensitivity dynamically (preferably by search term rather than for the entire fzf instance), I propose:
- rename "exact match" to "non-fuzzy match"
- add an actual "exact match" function that includes both "non-fuzzy match" and case-sensitivity.
Just found #1755, which is related, but not 'exactly' the same as my issue. Resolving this issue though, would resolve #1755 as well.
This breaks the syntax. I suggest adding a regex mode instead, where we can use modifiers like (?i)
to change case-sensitivity.
Is --exact +i
working?