camspiers / snap

A fast finder system for neovim.
The Unlicense
483 stars 16 forks source link

Fix encoding check for paths with special chars #95

Open aliou opened 3 months ago

aliou commented 3 months ago

Hi there!

I recently started using snap in my nvim config and I'm a big fan, thank you for this tool!

However, I noticed a bug: when fuzzy finding files that contains special characters (in my case ( in a Next.js project), an error message is displayed randomly in the window:

Screenshot 2024-06-22 at 03 43 59 PM@2x

This PR adds quotes around the path template so that the command can run without issues. If needed, I created this this repo to reproduce the issue.

I also included the generated Lua file in the PR, let me know if it should be removed.

Thanks!