               (recur package))))))
     om/IRenderState
     (render-state [this state]
-      (bookmarks (:bookmarks app) owner state))))
+      (bookmarks (if (not (clojure.string/blank? (:search-text state)))
+                   (remove
+                    (fn [bookmark]
+                      (nil?
+                       (re-find
+                        (re-pattern (clojure.string/lower-case (:search-text state)))
+                        (clojure.string/lower-case (:title bookmark)))))
+                    (:bookmarks app))
+                   (:bookmarks app))
+                 owner state))))
 
 
 (om/root

  (do
    #_(ws-repl/connect "ws://localhost:9001" :verbose true)
    (figw/watch-and-reload
     ;; :websocket-url "ws://localhost:3449/figwheel-ws" default
     :jsload-callback (fn [] (print "reloaded")))))



        (om/set-state! owner :url-input-text "")))))



;; --- MAIN VIEW ---

(defsnippet url "templates/bookmarks.html" [:.list-group-item]
