fzf icon indicating copy to clipboard operation
fzf copied to clipboard

Add keybinding or action to switch between fuzzy and nonfuzzy

Open nhooyr opened this issue 5 years ago • 3 comments

  • [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
    • [ ] Linux
    • [x] Mac OS X
    • [ ] Windows
    • [ ] Etc.
  • Shell
    • [ ] bash
    • [x] zsh
    • [ ] fish

Problem / Steps to reproduce

It'd be nice to a keybinding or an action so that I can set a keybinding to switch between fuzzy and non fuzzy mode.

It's unfortunate to have to go the start of the query string and enter ' and then go back when I want to make the match unfuzzy quickly.

nhooyr avatar Jun 04 '20 21:06 nhooyr

create a custom mapping in your shell like Ctrl + j to execute $ fzf -e(this is exact search)

RVSNS avatar Jul 11 '20 09:07 RVSNS

Hey just a note here you in case you didnt know, you can actually add it in front of any word {wont changr for whole line} but you can mix fuzzy and literal search example

rayiik avatar Jun 12 '21 06:06 rayiik

I often realize I want to make my search more strict by making a word literal after I have typed it. It would be nice to have a marker like ' that you can put at the end of the word to make that word non-fuzzy. Something like:

> banana' mlkshk

I'm not sure if there are any complications to using ' for this, but it would be nice to have the same character I guess.

kaddkaka avatar May 21 '22 09:05 kaddkaka