jhawthorn / fzy

:mag: A simple, fast fuzzy finder for the terminal
MIT License
2.98k stars 126 forks source link

Feature request: Literal search #51

Open diamond-lizard opened 7 years ago

diamond-lizard commented 7 years ago

I'd like to replace my shell's ordinary control-r history search completely with fzy, but I can't because fzy only does fuzzy searching and I sometimes need to ordinary, non-fuzzy, literal searches.

It would be nice if fzy allowed the user to switch search types from fuzzy to literal. Ideally, this could be done with either a command line option or via a keyboard shortcut. This way the user could switch from one to the other when the current search is not returning what they want without having to start all over.

casr commented 7 years ago

Perhaps another solution would be to capture your search input and somehow let your shell switch between the two commands instead? That way fzy can remain focused on being a fuzzy finder.