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

feature request: add a truely 'exact' match to extended search mode #2613

Open
5 of 10 tasks
cpakkala opened this issue Sep 13, 2021 · 3 comments
Open
5 of 10 tasks

feature request: add a truely 'exact' match to extended search mode #2613

cpakkala opened this issue Sep 13, 2021 · 3 comments

Comments

@cpakkala
Copy link

cpakkala commented Sep 13, 2021

  • I have read through the manual page (man fzf)
  • I have the latest version of fzf
  • I have searched through the existing issues

Info

  • OS
    • Linux
    • Mac OS X
    • Windows
    • Etc.
  • Shell
    • bash
    • 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:

  1. rename "exact match" to "non-fuzzy match"
  2. add an actual "exact match" function that includes both "non-fuzzy match" and case-sensitivity.
@cpakkala
Copy link
Author

cpakkala commented Sep 14, 2021

Just found #1755, which is related, but not 'exactly' the same as my issue. Resolving this issue though, would resolve #1755 as well.

@NightMachinery
Copy link

This breaks the syntax. I suggest adding a regex mode instead, where we can use modifiers like (?i) to change case-sensitivity.

@timsu92
Copy link

timsu92 commented Aug 30, 2022

Is --exact +i working?

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

3 participants