neovim-qt icon indicating copy to clipboard operation
neovim-qt copied to clipboard

The pwd is not always set correctly on Windows

Open kylemacfarlane opened this issue 8 years ago • 3 comments
trafficstars

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.

kylemacfarlane avatar Jul 31 '17 15:07 kylemacfarlane

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.

equalsraf avatar Jul 31 '17 16:07 equalsraf

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.

kylemacfarlane avatar Jul 31 '17 17:07 kylemacfarlane

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.

equalsraf avatar Jul 23 '18 22:07 equalsraf