neovim-qt
neovim-qt copied to clipboard
The pwd is not always set correctly on Windows
If nvim-qt is the default and you double click to open a file the pwd will be set correctly.
However if you right click on a file and use "open with" the pwd will always be C:\Windows\System32. Gvim doesn't have this problem.
I'm not sure how GVim is currently doing it in your system, there are a couple of ways to do it (documented at the wiki)
In our case we are not doing anything specific to enable this menu. This is just the automatic windows behaviour. Not sure how to override it.
That wiki link is for something different (the "Edit with Vim" shell extension).
I'm talking about the native "open with" menu option. Right click a file > open with > choose another app > browse to nvim-qt.exe.
I see. Here is an equivalent issue for python https://bugs.python.org/issue26866, and similar for vimr https://github.com/qvacua/vimr/issues/308
So we need a way to determine when nvim-qt is started this way to set CWD as the basename of the file, or the full path if it is a folder.