-
Notifications
You must be signed in to change notification settings - Fork 11
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
incompatibility on windows when lauching a viewer #27
Comments
Someone else would have to do that. I don't have a Windows machine to test on, and have no desire to obtain one. If you're right, it doesn't sound particularly hard. However, I'm not going to put out code that hasn't been tested. There's other code I can't imagine would be compatible, such as in the |
I modified the code, and it worked! The launcher now runs on Windows. Below is the
|
Did you want to do a pull request? You can probably simplify the code just by running the os check once at load time, and have it set a global variable either to 'NIL' or '/dev/null' and just have the individual commands stick one or another where it needs to go, since that looks like the only difference rather than doing a if then every time. |
I noticed that the viewer does not run in background. |
Good news: |
@andregpss please make a pull request as suggested by @frabjous. This is hugely beneficial toward a Windows version. |
@andregpss Thank you so much for making the pull request. Could you please write an instruction on how to setup |
There's no additional setup on Windows besides the one described on The
|
I merged your PR, though there were some things I needed to fix, as you had 'start ' at the beginning of the launch command, which only works on Windows as far as I know, and you also lost the ' & echo $!' at the end of the launch command, which meant that it launched in the foreground and locked up neovim. I'm just assuming it behaves properly on Windows now, as I cannot test that. It is surprising to me that you don't need a '&' at the end of the launch command. Incidentally, I don't even use neovim anymore, and therefore not this plugin either. It would be great if someone else was interested in taking over (you can change the name)! |
I found
Knap
very interesting, so I installed it onWindows
, even though I knew it was incompatible.I verified that the processing is done successfully using
pandoc
. However, the problem is launching the viewer. At this point,knap
shows the errorCoud not launch viewer.
Analyzing Knap's
launch_viewer()
function, I believe that what makes it incompatible on Windows is adding the command> /dev/null 2>&1 & echo $!
to thelcmd
variable.The equivalent on Windows is
>NUL 2>&1 & echo $!
.Can you change this, detecting the operating system in use to run the correct command? I'm looking forward to testing it.
The text was updated successfully, but these errors were encountered: