Open OniVim from WSL
I recently started using WSL with Ubuntu so that I can avoid dual-booting, and I took the opportunity to make the plunge to OniVim (loved vim too much to switch to VSCode).
It would be really useful if I could navigate to the correct directory in WSL (which I will be doing so that I can run my RSpec tests and migrations), and I could call oni2 . from within WSL and it opens the OniVim executable on my Windows OS (which is hosting the WSL).
As a workaround, you can seemingly update your PATH to include Oni2 for now.
export PATH="$PATH:/mnt/c/Program Files/Onivim2" in my bashrc seemingly works:

Note that it is added as oni2.exe, not oni2.
Not deeply tested, but it opened a file from my home folder (and I've no idea where the WSL home folder lives).
I can confirm that this workaround worked for me too.
@CrossR @tscholiadis
Note that it is added as
oni2.exe, notoni2.
I belive you can alias this to omit exe extension:
export PATH="$PATH:/mnt/c/Program Files/Onivim2"
alias oni2="oni2.exe"
Tested it works ;)
I can open oni2.exe from WSL, but the extensions seem broken since it looks for executables in Windows rather than in WSL. I think that this is related to how WSL works with VSCode. See this issue here https://github.com/onivim/oni2/issues/407.
Maybe if oni was installed inside WSL, then by enabling GUI apps to run inside WSL (there are a couple apps for this: vcxsrv [free] and can't remember the other one [paid]) we could get around the issues with the WSL extension not working with oni.
@mabasic 100% I subsequently got it to work like that, with no need to get OniVim to talk to applications (or Ruby gems) in WSL. All recommendations in the post talk about how to open the Oni installed in Windows from WSL. If you install it directly in WSL, all your "cross-compatibility" issues are gone. The only problem that exists then is the fact that you can't open a GUI (as you correctly pointed out). I have installed X410 that does the trick and is very lightweight. Now I basically run everything directly from WSL, with no errors about Windows not being able to see gems installed in WSL :)
I haven't tried x410, but going to try it asap. Thanks for the tip! ❤️