pub fn preview(v: &Value) -> StringExpand description
A compact one-line preview of a value.
One line means one line: a multi-line string (a YAML block scalar, a shell
script in a run: key) is cut at its first line break with an ellipsis. A
renderer that took the whole thing would draw a row several lines tall and
throw the rest of the list out of alignment — and every caller of this asks
for a value it can put on one row.
edit_seed is the deliberate exception: it hands back the whole string,
so what you edit is never the abbreviation you were shown.