We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57f074a commit 166d4baCopy full SHA for 166d4ba
src/portal/ui/viewer/code.cljs
@@ -2,6 +2,7 @@
2
(:require ["highlight.js" :as hljs]
3
[clojure.string :as str]
4
[portal.colors :as c]
5
+ [portal.ui.filter :as f]
6
[portal.ui.html :as h]
7
[portal.ui.inspector :as ins]
8
[portal.ui.styled :as s]
@@ -115,7 +116,9 @@
115
116
(hljs/highlight #js {:language "clojure"})
117
.-value)]]))
118
-(defn inspect-pr-str [value] [highlight-clj (pr-str value)])
119
+(defn inspect-pr-str [value]
120
+ (let [search-text (ins/use-search-text)]
121
+ [highlight-clj (pr-str (f/filter-value value search-text))]))
122
123
(defn inspect-code
124
([code]
0 commit comments