twibiral / obsidian-execute-code

Obsidian Plugin to execute code in a note.
MIT License
1.06k stars 67 forks source link

Adds support for enabling WSL Mode for the shell language only #275

Closed mihai-vlc closed 10 months ago

mihai-vlc commented 1 year ago

I used prettier as the auto formatter, I'm happy to disable that if needed. I tried to make it match the existing .editorconfig file.

The main change is that settings.shellWSLMode was added and used in the src/executors/NonInteractiveCodeExecutor.ts file.

The change in esbuild.config.mjs was needed to make the watch mode work. As far as I can tell, obsidian expects that main.js file to be next to the manifest.json

twibiral commented 10 months ago

Hi @mihai-vlc , thank you a lot for the contribution! Sorry for the late response, I was quite busy.

I would appreciate if you remove prettier for this PR and create a new PR that introduces prettier to the project with a short explanation for how it is used.

Also, please do not update the version number. I take care of that whenever I create a new release.