File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 202202
203203(defn grep-summary [args]
204204 (if-let [pattern (get args " pattern" )]
205- (format " Searching for '%s'" pattern)
205+ (if (> (count pattern) 22 )
206+ (format " Searching for '%s...'" (subs pattern 0 22 ))
207+ (format " Searching for '%s'" pattern))
206208 " Searching for files" ))
207209
208210(defn ^:private handle-file-change-result
217219
218220 (= (:error result) :ambiguous )
219221 (tools.util/single-text-content
220- (format " Ambiguous match - content appears %d times in %s. Provide more specific context to identify the exact location."
221- (:match-count result) path) :error )
222+ (format " Ambiguous match - content appears %d times in %s. Provide more specific context to identify the exact location."
223+ (:match-count result) path) :error )
222224
223225 :else
224226 (tools.util/single-text-content (format " Failed to process %s" path) :error )))
You can’t perform that action at this time.
0 commit comments