Windows-Safe Grep Utility
Resolves ripgrep path errors on Windows by implementing shell-safe path quoting and forward-slash conversion techniques.
The Windows-Safe Grep skill provides specialized patterns and commands to overcome common ripgrep (rg) failures on Windows operating systems. It specifically targets the 'Incorrect function (os error 1)' that occurs when Windows paths containing backslash-space sequences (like \n) are misinterpreted as control characters or reserved device names like 'nul'. By providing optimized bash-style pathing and cygpath integration, this skill ensures that search operations remain reliable and accurate within Windows-based development environments.
주요 기능
01Prevents accidental interpretation of path sequences as reserved device names
02Fixes 'Incorrect function (os error 1)' errors in ripgrep
03Converts Windows backslash paths to shell-safe forward-slash formats
04Provides fallback search patterns using find and grep for complex lookups
05101 GitHub stars
06Includes cygpath utility patterns for automated path translation
사용 사례
01Standardizing search commands for developers working across Windows and Unix-like environments
02Troubleshooting terminal search failures when standard ripgrep commands fail on local Windows paths
03Searching codebases located in Windows directories that contain spaces or special character sequences