Fzf: Option to cycle between literal, reg-exp, and fuzzy matching when selecting

Created on 30 May 2018  路  2Comments  路  Source: junegunn/fzf

  • Category

    • [x] fzf binary

    • [ ] fzf-tmux script

    • [ ] Key bindings

    • [ ] Completion

    • [ ] Vim

    • [ ] Neovim

    • [ ] Etc.

  • OS

    • [ ] Linux

    • [ ] Mac OS X

    • [ ] Windows

    • [ ] Windows Subsystem for Linux

    • [ ] Etc.

  • Shell

    • [ ] bash

    • [ ] zsh

    • [ ] fish

(Suggestion) Option to cycle between literal, reg-exp, and fuzzy matching when selecting.

I love fzf. And the "fuzzy" is, of course, is what makes it great. But sometimes it would be nice to have a more exact matching algorithm applied on the fly or on demand. E.g., when working with a project with lots of similar files, typing a few letters may get it filtered down to a some dozen (or hundred), but then after that it is often difficult to thin it out more due to the similarity of filenames. Being able to switch to literal of reg-exp matching would help a lot in cases like this.

The switch/cycling/toggling can be triggered by a Ctrl key (e.g., "CTRL-R") so as to disambiguate from standard filter/fuzzy search text.

Thank you for fzf!

question

Most helpful comment

Hi, there is no plan for supporting mode switching, or regex mode. But you can already mix exact search terms and fuzzy terms by prefixing each term with ' character. I use it a lot.

fzzy 'exact

See:

All 2 comments

Hi, there is no plan for supporting mode switching, or regex mode. But you can already mix exact search terms and fuzzy terms by prefixing each term with ' character. I use it a lot.

fzzy 'exact

See:

Oh, this is _excellent_, and does exactly what is needed. Thanks!

Was this page helpful?
0 / 5 - 0 ratings