   (object/raise sidebar/rightbar :toggle sidebar-command (assoc opts :soft? true))
   (object/raise sidebar-command :soft-focus!))
 
-(def by-id cmd/by-id)
-
-(def exec! cmd/exec!)
-
 (defn exec-active! [& args]
   (object/raise sidebar-command :exec-active! args))
 

        score2)
      (.. items (map #(array % (key %) nil nil))))))



(defui item [this x]
  [:li {:index x}]

(behavior ::exec-command
          :triggers #{:exec!}
          :reaction (fn [this sel & args]
                      (let [cmd (cmd/by-id sel)]
                        (cond
                         (not (:options cmd)) (apply cmd/exec! cmd args)
                         (and (:options cmd) (seq args)) (apply (:exec cmd) args)
                         :else (do (cmd/exec! :show-commandbar-transient)
                                 (object/raise (:selector @this) :select cmd))))))

(behavior ::exec-active!
