helix: :cd not working on Windows with v0.6

Reproduction steps

  1. Run hx in the command prompt
  2. Try to cd to a different folder, e.g. “C:\opt”
  3. Receive the error “Couldn’t change the current working directory: The system cannot find the file specified. (os error 2)”

image

The expected behavior (release v0.5) is:

image

Environment

  • Platform: Windows 10
  • Helix version: v0.6 release (hx -V prints “helix”)
~/.cache/helix/helix.log (C:\Users\lsimons\AppData\Local\helix is empty)

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 16 (15 by maintainers)

Commits related to this issue

Most upvoted comments

We don’t import shellwords, we have our own implementation.

I thought the fix for #1389 was odd, rather than converting Windows backslashes to slashes, it should patch the shellwords handling to work with backslashes if cfg(windows) I think?

@kirawi You are on Windows right? Can you try to narrow it down?