nuta / nsh

A command-line shell like fish, but POSIX compatible.
906 stars 34 forks source link

Escape spaces for entry name in fuzzy search #24

Closed svekko closed 2 years ago

svekko commented 2 years ago
  1. Previously completion list filtering didn't partially work for directories/files with space in the name, as the spaces weren't escaped in the completion list entries in case of fuzzy matching. For example: if I had a directory with name test dir, query with test\ found no results, although space was properly escaped in the query.

  2. Escaped spaces are now unescaped for query passed into compute_score because entries consist of entries with spaces not escaped.

nuta commented 2 years ago

Thanks, @svekko !