   (ui/update-project-tree!)
   (finish-edits!))
 
+(def ^:dynamic *widgets* [:up :new-file :edit :save :cancel])
+
 (defn create-actions
   []
   {:up go-up!


(defn create-card
  []
  (doto (s/border-panel :id :file-browser
                        :north (ui/wrap-panel :items (create-widgets))
                        :center (s/scrollable (ui/wrap-panel :id :file-grid)))
    shortcuts/create-hints!
    (shortcuts/create-mappings! (create-actions))))

(defn update-card!
  ([path]

   :cancel finish-edits!})

(defn create-widgets
  [actions]
  {:up (create-up-button)
   :new-file (ui/button :id :new-file
                        :text (utils/get-string :new-file)
                        :listen [:action (:new-file actions)]
                        :focusable? false)
   :edit (ui/button :id :edit
                    :text (utils/get-string :edit)
                    :listen [:action (:edit actions)]
                    :focusable? false)
   :save (ui/button :id :save
                    :text (utils/get-string :save)
                    :listen [:action (:save actions)]
                    :focusable? false)
   :cancel (ui/button :id :cancel
                      :text (utils/get-string :cancel)
                      :listen [:action (:cancel actions)]
                      :focusable? false)})

(defn toggle-visible!
  [view path]
