Skip to content

fix: escape spaces in path completion #13388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yo-main
Copy link
Contributor

@yo-main yo-main commented Apr 21, 2025

close #13371

The flows for completion approximately goes like path_completion -> compile_path_regex -> path_component

The path_component regex expects spaces to be escaped, however the path_completion function provides unescaped spaces.

The PR tries to fix the original issue by correctly escaping spaces in path (and attempt to do it only in path). I'm not sure if that is the best way to go, happy to collect feedback on this !

@yo-main yo-main force-pushed the fix-path-completion branch 2 times, most recently from 8a1f23e to ffad5fb Compare April 21, 2025 19:58
@yo-main yo-main force-pushed the fix-path-completion branch from ffad5fb to 8a33f78 Compare April 21, 2025 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Helix cannot tab complete some filepaths
1 participant