You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try typing :cd C:\Prog<tab><ret>
i.e. execute command :cd C:\"Program Files"
or essentially any root folder which contains subfolders with spaces in their names.
I expected this to happen:
Current working directory is now C:\Program Files
Instead, this happened:
Couldn't change the current working directory: The filename, directory name, or volume label syntax is incorrect. (os error 123)
Helix log
~/.cache/helix/helix.log
please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines
I did not file any helix directory under `%userprofile%/.cache`
I think either way C:\"Program Files" should be an acceptable input as that works in Windows, though "C:\Program Files" is more common. Typing out :cd "C:\Program Files" does work, typing :cd "C:\ then autocompleting results in :cd "C:\"Program Files" being typed.
I thought maybe I could get away with just adding the following to the Unqouted match in Shellwords::from to handle quotes in the middle of the word:
It handles it as one word successfully, but then it tries to open C:\"Program Files" (actually trying to use the quotes) which doesn't exist. The behavior is the same for :open.
Summary
i suspect that this (quotes in middle of name) is what causes the error
but since, those quotes were put by helix itself, this is bug.
This same error is raised when the name contain any naked spaces
but that is not a bug, that's a user error as that space is inserted by user.
Originally posted by @yashpalgoyal1304 in #5882 (comment)
Reproduction Steps
I tried this:
hx
:cd C:\Prog
<tab>
<ret>
i.e. execute command
:cd C:\"Program Files"
or essentially any root folder which contains subfolders with spaces in their names.
I expected this to happen:
Instead, this happened:
Helix log
~/.cache/helix/helix.log
Platform
Windows
Terminal Emulator
wezterm 20221119-145034-49b9839f
Helix Version
helix 22.12 (96ff64a)
The text was updated successfully, but these errors were encountered: