atom-shell-commands
atom-shell-commands copied to clipboard
command starts before file saved
I have a large pandoc-file. I want to convert it into html by using the pandoc-command. The option to save the file before executing the command is enabled in the config.cson:
"*":
"atom-shell-commands":
commands: [
{
arguments: [
"-c markdown.css"
"-s"
"{FileName}"
"-o"
"{FileNameNoExt}.html"
]
command: "pandoc"
name: "translate pandoc to html"
options:
cwd: "{FileDir}"
keymap: "ctrl-2"
save: true
}
...
]
core:
...
editor:
...
I have to execute the pandoc-command twice or I have to save the file before launching the command. Otherwise, the command doesn't consider the last changes of my source file. It feels like the command is not waiting for the save-operation to be completed.