You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using Forward/ReverseSearchHistory and fuzzy matching across entire history entry #82
Is it possible to use forward or reverse search history with a bit of fuzzy logic? Also, is it possible to do partial matches across the entire line? I ask because in zsh I'll often search for the first command and then part of the rest of the command, consider the following:
Have you guys checked PSFzf? https://github.com/kelleyma49/PSFzf it's a module for adding FZF capabilities for PowerShell (such as changing the current folder or navigating the history interactively with FZF).
I used it all the time before the predition feature, and I still resort to it whenever I need to come back to a command which I remember just vaguely.
Activity
lzybkr commentedon Jan 29, 2014
Maybe not quite what you're asking, but I had considered using a regex or wildcard search instead of a simple "starts with".
Do you know of any documentation on how zsh does it's fuzzy search? I read most of the zle documentation and don't recall seeing this capability.
frizop commentedon Jan 30, 2014
You know, after reviewing this a little more, maybe I'm just crazy. It doesn't seem to work the way I remembered.
As far as the fuzzy logic: see the docs here: http://arcib.dowling.edu/cgi-bin/info2html?(zsh)Control%2520Functions under the function _approximate
lzybkr commentedon Jan 30, 2014
I'll leave this open because I think I'd like regex or wildcard matching.
You can open an issue here https://github.com/lzybkr/TabExpansionPlusPlus to request fuzzy expansion.
bazzilic commentedon Aug 14, 2015
To add to this, I would really like to see smth like
cd C:\us\ba\deto expand intocd C:\Users\bazzilic\Desktopwhen I hit<Tab>.thomazmoura commentedon Sep 13, 2022
Have you guys checked PSFzf? https://github.com/kelleyma49/PSFzf it's a module for adding FZF capabilities for PowerShell (such as changing the current folder or navigating the history interactively with FZF).
I used it all the time before the predition feature, and I still resort to it whenever I need to come back to a command which I remember just vaguely.