helix icon indicating copy to clipboard operation
helix copied to clipboard

`gf` fails to open file/HTTP URLs in Windows

Open b-van-b opened this issue 6 months ago • 2 comments

Summary

Opening a file or HTTP link in Windows with gf results in this error: Windows cannot find '\\'.

Reproduction Steps

I tried this:

  1. hx
  2. i
  3. https://helix-editor.com/news/
  4. x
  5. gf
  6. c
  7. C:\tmp\test.txt (path to an extant file)
  8. x
  9. gf

I expected this to happen:

  1. https://helix-editor.com/news/ should open in the default browser.
  2. C:\tmp\test.txt should open in Helix.

Instead, this happened:

Windows presented me with the following error message both times: Windows cannot find '\\'. Check the spelling and try again,or try searching for the item by clicking the Start button and then clicking Search.

If I do the above in WSL, it will correctly load the URL in Firefox in Windows and load the text file (at a modified path: /mnt/c/tmp/test.txt in Helix.

Helix log

Nothing is recorded in the log for this.

Platform

Windows

Terminal Emulator

Windows Terminal 1.22.11141.0

Installation Method

scoop

Helix Version

helix 25.01.1 (e7ac2fcd)

b-van-b avatar May 31 '25 08:05 b-van-b

CTRL-clicking a hyperlink such as https://www.google.com/ opens the link correctly.

b-van-b avatar Jun 01 '25 14:06 b-van-b

I've fixed it. It works as expectation now.

yohaneYuri avatar Jun 14 '25 14:06 yohaneYuri