File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1109
1109
(unindent ))
1110
1110
inspector)))
1111
1111
1112
- (defn render-view-mode [{:keys [value view-mode pretty-print only-diff] :as inspector}]
1112
+ (defn render-view-mode [{:keys [value view-mode pretty-print sort-maps only-diff] :as inspector}]
1113
1113
(if (some? value)
1114
1114
(let [supported (filter #(view-mode-supported? inspector %) view-mode-order)
1115
1115
add-circle #(if %2 (str " ●" %1 ) %1 )
1118
1118
(map #(add-circle (name %) (= % view-mode)))
1119
1119
(str/join " " ))
1120
1120
" " (add-circle " pretty" pretty-print)
1121
+ " " (add-circle " sort-maps" sort-maps)
1121
1122
(when diff?
1122
1123
(str " " (add-circle " only-diff" only-diff))))
1123
- caption (format " View mode (press 'v' to cycle, 'P' to pretty-print%s)"
1124
+ caption (format " View mode (press 'v' to cycle, 'P' to pretty-print, 'S' to sort maps %s)"
1124
1125
(if diff? " , 'D' to show only diffs" " " ))]
1125
1126
(-> (render-section-header inspector caption)
1126
1127
(indent )
You can’t perform that action at this time.
0 commit comments