diff --git a/plugin/cwheel.vim b/plugin/cwheel.vim index 80f50b8..ec1ec74 100644 --- a/plugin/cwheel.vim +++ b/plugin/cwheel.vim @@ -23,7 +23,7 @@ function! CWheel() let force_flag = ' -x ' endif - let command = 'cwheel ' . force_flag . ' -o ' . shellescape(output_file) . ' ' . shellescape(current_file) + let command = 'cwheel -i ' . shellescape('$html') . ' ' . force_flag . ' -o ' . shellescape(output_file) . ' ' . shellescape(current_file) let output = system(command, v:true) if v:shell_error diff --git a/plugin/vscode/src/extension.ts b/plugin/vscode/src/extension.ts index f93e16a..9db6ba4 100644 --- a/plugin/vscode/src/extension.ts +++ b/plugin/vscode/src/extension.ts @@ -43,7 +43,7 @@ function cycle() { } function executeCWheel() { - const cwheelCommand = `cwheel ${forceFlag} -o ${outputFileName} ${currentFile}`; + const cwheelCommand = `cwheel -i '$html' ${forceFlag} -o ${outputFileName} ${currentFile}`; exec(cwheelCommand, (error, stdout, stderr) => { if (error) {