maaslalani / slides

Terminal based presentation tool
http://maaslalani.com/slides/
MIT License
9.83k stars 270 forks source link

Support Windows CMD or PowerShell for code execution #229

Open AddictArts opened 1 year ago

AddictArts commented 1 year ago

Is your feature request related to a problem? Please describe. Yes, the bash code block language (shell) does not exist on Windows. It may exist via GitBash, but slides does not pick that up, but I'm not requesting. Exit code 127 appears for these.

Describe the solution you'd like It would be great to support CMD or PowerShell, or just use bash, but call one of those executors.

Describe alternatives you've considered There is none for CTRL-E on Windows and executing shell content.

Selyss commented 1 year ago

I can try it, sure

Selyss commented 1 year ago

image

When i try to add batch like normal, I get an error:
fork/exec ...\Temp\slides-1834313067.bat: The process cannot access the file because it is being used by another proce-

Anyone know where this issue may be occuring? I am using Command Prompt on Windows 11