Opticos / OpenInWSL-Source

The actual code for OpenInWSL. And some prebuilt releases.
https://opticos.github.io/openinwsl
Other
101 stars 16 forks source link

Does not work with Neovim #9

Closed mangelozzi closed 2 years ago

mangelozzi commented 2 years ago

This configuration /usr/bin/nvim #fpth# does not work.

In the shell in bash /usr/bin/nvim ~/myfile.txt works (so does nvim ~/myfile.txt).

Pololot64 commented 2 years ago

What do the logs say?

mangelozzi commented 2 years ago

Nothing overly intersting: (I don't have GWSL installed, was just trying the various options, because I didn't know which one ment open with Windows Terminal.)

2021-10-19 12:30:26,989 - OpenInWSL 1.5 store - INFO - RUN TEST: nvim /mnt/c/users/michael/appdata/roaming/openinwsl/settings.json
2021-10-19 12:30:27,246 - OpenInWSL 1.5 store - INFO - No GWSL installed. Install or get another xserver
2021-10-19 12:31:01,514 - OpenInWSL 1.5 store - INFO - RUN TEST: nvim /mnt/c/users/michael/desktop/moocows.txt
2021-10-19 12:31:01,790 - OpenInWSL 1.5 store - INFO - No GWSL installed. Install or get another xserver
2021-10-19 12:32:58,614 - OpenInWSL 1.5 store - INFO - RUN TEST: nvim /mnt/c/users/michael/desktop/moocows.txt
2021-10-19 12:34:05,573 - OpenInWSL 1.5 store - INFO - RUN TEST: nvim /mnt/c/users/michael/desktop/moocows.txt
2021-10-19 12:41:21,269 - OpenInWSL 1.5 store - INFO - RUN TEST: /usr/bin/nvim '/mnt/c/users/michael/desktop/moocs~1.jso'
2021-10-19 12:41:47,027 - OpenInWSL 1.5 store - INFO - RUN TEST: /usr/bin/nvim '/mnt/c/users/michael/desktop/moocs~1.jso'
2021-10-19 12:42:02,944 - OpenInWSL 1.5 store - INFO - RUN TEST: /usr/bin/nvim '/mnt/c/users/michael/desktop/moocs~1.jso'
2021-10-19 12:51:32,545 - OpenInWSL 1.5 store - INFO - RUN TEST: nvim '/mnt/c/users/michael/desktop/moocs~1.jso'
2021-10-19 12:53:27,733 - OpenInWSL 1.5 store - INFO - RUN TEST: echo /mnt/c/users/michael/desktop/moocs.txt; read
2021-10-19 12:54:37,399 - OpenInWSL 1.5 store - INFO - RUN TEST: /usr/bin/nvim "/mnt/c/users/michael/desktop/moocs.txt"
2021-10-19 12:54:50,211 - OpenInWSL 1.5 store - INFO - RUN TEST: /usr/bin/nvim "/mnt/c/users/michael/desktop/moocs.txt"
Pololot64 commented 2 years ago

Oh! Neovim is non graphical! In that case you need a graphical linux terminal app. For example you would do something like xterm neovim #fpth# (I do not remember the manual of xterm off the top of my head)

mangelozzi commented 2 years ago

Okay thank you. Someone recommended this app as a solution to opening WSL app in windows terminal so I was under the impression if could. Thanks for the answers.

Pololot64 commented 2 years ago

No problem (Btw now that you mention it maybe it can. I just don't have a machine to test atm)