 (defn gofmt [file]
   "Performs `gofmt -w file`."
   (let [cmd (str "gofmt -w " file)]
-    (notifos/working (format "gofmt %s..." file))
+    (notifos/working (str "gofmt " file))
     (run-cmd cmd)
     (notifos/done-working "")))
 

(behavior ::fmt-on-save
          :triggers #{:save}
          :reaction (fn [editor]
                      (println "::fmt-on-save")
                      (let [path (-> @editor :info :path)]
                        (println "file" path)
                        (gofmt path))
                      ;(cmd/exec! :go-fmt nil)
                      ))

(cmd/command {:command ::go-fmt
              :desc "Go: fmt current file"
              :exec (fn []
                      (gofmt (cwf->path)))})

                         (fn [err stdout stderr]
                           (if err
                             (println "err: " err)
                             (println stdout))))
        ;input (.-stdin child)
        ;output (.-stdout child)
        ]
