atom-shell-commands icon indicating copy to clipboard operation
atom-shell-commands copied to clipboard

command starts before file saved

Open andreas1724 opened this issue 7 years ago • 0 comments

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.

andreas1724 avatar Sep 01 '18 19:09 andreas1724