helix
helix copied to clipboard
`gf` fails to open file/HTTP URLs in Windows
Summary
Opening a file or HTTP link in Windows with gf results in this error: Windows cannot find '\\'.
Reproduction Steps
I tried this:
hxihttps://helix-editor.com/news/␛xgfcC:\tmp\test.txt(path to an extant file)␛xgf
I expected this to happen:
https://helix-editor.com/news/should open in the default browser.C:\tmp\test.txtshould 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)
CTRL-clicking a hyperlink such as https://www.google.com/ opens the link correctly.
I've fixed it. It works as expectation now.