 (cmd/command {:command :open-file
               :desc "File: Open file"
               :exec (fn []
-                      (dialogs/file opener :open!))})
+                      (open-input opener :open-dialog!))})
 
 (cmd/command {:command :open-path
               :desc "File: Open path"

                :tags #{:opener}
                :triggers #{}
                :open-files #{}
                :behaviors [::open-standard-editor]
                :init (fn [this]))

(def opener (object/create ::opener))

;; transient docs
;;**********************************************************

(defn open-input [this & [ev dir?]]
  (ipc/call this (or ev :open!)
            :dialog.showOpenDialog ipc/win {:properties [(if dir? :openDirectory :openFile)
                                                         :multiSelections]}))

(defn save-input [this path]
  (ipc/call this :save-as!
