|
86 | 86 | :procs $ []
|
87 | 87 | |comp.command $ {}
|
88 | 88 | :ns $ [] |ns |app.comp.command
|
89 |
| - [] |:require ([] |[] |clojure.string |:as |string) ([] |[] |respo.core |:refer $ [] |[] |defcomp |div |<> |span |input) ([] |[] |hsl.core |:refer $ [] |[] |hsl) |
| 89 | + [] |:require ([] |[] |clojure.string |:as |string) ([] |[] |respo.core |:refer $ [] |[] |defcomp |div |<> |span |input) ([] |[] |hsl.core |:refer $ [] |[] |hsl) ([] |[] |respo.comp.space |:refer $ [] |[] |=<) ([] |[] |respo-ui.core |:as |ui) |
90 | 90 | :defs $ {}
|
91 | 91 | |style-command $ [] |def |style-command
|
92 |
| - [] |{} ([] |:backgroud-color $ [] |hsl |0 |0 |0) ([] |:padding "||0 8px") ([] |:line-height |2.4) ([] |:font-family "||Source Code Pro, Menlo,monospace") ([] |:cursor ||pointer) |
93 |
| - |on-click $ [] |defn |on-click ([] |on-select) |
94 |
| - [] |fn ([] |e |dispatch!) ([] |on-select |dispatch!) |
| 92 | + [] |{} ([] |:backgroud-color $ [] |hsl |0 |0 |0) ([] |:padding "||0 8px") ([] |:line-height "|\"30px") ([] |:font-family |ui/font-normal) ([] |:cursor ||pointer) |
95 | 93 | |comp-command $ [] |defcomp |comp-command ([] |command |selected? |on-select)
|
96 | 94 | [] |div
|
97 | 95 | [] |{}
|
98 | 96 | [] |:style $ [] |merge |style-command
|
99 |
| - [] |if |selected? $ [] |{} ([] |:background-color $ [] |hsl |0 |0 |30) |
100 |
| - [] |:on-click $ [] |on-click |on-select |
101 |
| - [] |<> |span ([] |string/join "|| " |command) (, |nil) |
| 97 | + [] |if |selected? $ [] |{} ([] |:background-color $ [] |hsl |0 |0 |20 |0.8) |
| 98 | + [] |:on-click $ [] |fn ([] |e |dispatch!) ([] |on-select |dispatch!) |
| 99 | + [] |case ([] |first |command) |
| 100 | + [] |:defs $ [] |div ([] |{}) ([] |<> $ [] |get |command |2) ([] |=< |16 |nil) |
| 101 | + [] |<> ([] |get |command |1) |
| 102 | + [] |{} $ [] |:color ([] |hsl |0 |0 |40) |
| 103 | + [] |<> ([] |string/join "|| " |command) (, |nil) |
102 | 104 | :procs $ []
|
103 | 105 | |updater $ {}
|
104 | 106 | :ns $ [] |ns |app.updater
|
|
1111 | 1113 | [] |some
|
1112 | 1114 | [] |fn ([] |piece)
|
1113 | 1115 | [] |string/includes? ([] |str |piece) (, |query)
|
1114 |
| - , |pieces |
| 1116 | + [] |if ([] |= |:defs $ [] |first |pieces) ([] |subvec |pieces |1) (, |pieces) |
1115 | 1117 | , |queries
|
1116 | 1118 | |contains-def? $ [] |defn |contains-def? ([] |files |ns-part |name-part) ([] |println "||Contains def:" |ns-part |name-part)
|
1117 | 1119 | [] |if ([] |contains? |files |ns-part)
|
|
0 commit comments