I thought disabling HISTORY_SUBSTRING_SEARCH_FUZZY would also disable search pattern *abc* but that's not the case.
local search_pattern="*${(j:*:)_history_substring_search_query_parts[@]//(#m)[\][()|\\*?#<>~^]/\\$MATCH}*"
Pattern always starts with a *. Fuzzy searching as I imagined would leave the position of a substring the same in the query. Search results for disabled fuzzy searching should always start with abc then match fuzzy abc*d*
I thought disabling HISTORY_SUBSTRING_SEARCH_FUZZY would also disable search pattern
*abc*
but that's not the case.local search_pattern="*${(j:*:)_history_substring_search_query_parts[@]//(#m)[\][()|\\*?#<>~^]/\\$MATCH}*"
Pattern always starts with a
*
. Fuzzy searching as I imagined would leave the position of a substring the same in the query. Search results for disabled fuzzy searching should always start withabc
then match fuzzyabc*d*