fields: add sexp column

Indicates whether the given field is part of the s-expression.
This commit is contained in:
Dirk-Jan C. Binnema 2022-05-14 20:42:09 +03:00
parent 9e78d3d13f
commit 619c1c81fe
1 changed files with 2 additions and 1 deletions

View File

@ -48,7 +48,7 @@ show_fields(const MuConfig* opts)
Table fields;
fields.add_row({"field-name", "alias", "short", "search",
"value", "example query", "description"});
"value", "sexp", "example query", "description"});
auto disp= [&](std::string_view sv)->std::string {
if (sv.empty())
@ -81,6 +81,7 @@ show_fields(const MuConfig* opts)
field.shortcut ? format("%c", field.shortcut) : ""s,
searchable(field),
field.is_value() ? "yes" : "no",
field.include_in_sexp() ? "yes" : "no",
disp(field.example_query),
disp(field.description)});
++row;