Переглянути джерело

added TODO and "/" shortcuts to mobile bar

akhater 4 роки тому
батько
коміт
19cc69c82c
1 змінених файлів з 7 додано та 1 видалено
  1. 7 1
      src/main/frontend/components/editor.cljs

+ 7 - 1
src/main/frontend/components/editor.cljs

@@ -249,6 +249,9 @@
    [:button.bottom-action
     {:on-click #(commands/simple-insert! parent-id "\n" {})}
     svg/multi-line-input]
+   [:button.bottom-action
+    {:on-click #(commands/simple-insert! parent-id "TODO " {})}
+    svg/checkbox]
    [:button.font-extrabold.bottom-action.-mt-1
     {:on-click #(commands/simple-insert!
                  parent-id "[[]]"
@@ -264,7 +267,10 @@
                   :check-fn     (fn [_ _ new-pos]
                                   (reset! commands/*slash-caret-pos new-pos)
                                   (commands/handle-step [:editor/search-block]))})}
-    "(())"]])
+    "(())"]
+    [:button.font-extrabold.bottom-action.-mt-1
+    {:on-click #(commands/simple-insert! parent-id "/" {})}
+    "/"]])
 
 (rum/defcs input < rum/reactive
   (rum/local {} ::input-value)