-
Notifications
You must be signed in to change notification settings - Fork 155
Cannot open a new file in editor in Windows #499
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
Comments
Unfortunately windows is barely supported. The only real reason it works on windows is because it's a cli tool and can be built from source on a windows machine. It's sad, I know, but tis the way it is. So I can only give some thoughts. Have you added Otherwise, from memory I saw this problem before, and it could be you need to supply the full path to the exe. |
That's a good point. Using the full path did not help :
editor = "C:\\Users\\XX\\scoop\\apps\\helix\\current\\hx.exe"
results in
zk: error: operation aborted by editor:
C:\Users\XXX\scoop\apps\helix\current\hx.exe
C:\Users\XX\notes\2cji-test.md: exit status 1
Same with defining an environment variable `hx` equals to the full
path :/
|
@tjex This can be fixed by removing zk/internal/adapter/editor/editor.go Line 42 in 2f8be08
|
Fixes zk-org#499 by removing /dev/tty on Windows
Thanks, it worked for me. |
Check if applicable
Describe the bug
Hi,
zk new --title "test"
fails to open the file in editor, even though the file is created.Tested on nushell and powershell, neovim and helix.
Thanks
How to reproduce?
zk new --title "test"
fails to open the file in editorzk configuration
Environment
The text was updated successfully, but these errors were encountered: