forked from lix-project/lix
search: include version
This commit is contained in:
parent
f602ff264b
commit
0d72f4e0ca
1 changed files with 3 additions and 1 deletions
|
@ -173,10 +173,12 @@ struct CmdSearch : SourceExprCommand, MixJSON
|
||||||
jsonElem.attr("description", description);
|
jsonElem.attr("description", description);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
auto name = hilite(parsed.name, nameMatch, "\e[0;2m")
|
||||||
|
+ std::string(parsed.fullName, parsed.name.length());
|
||||||
results[attrPath] = fmt(
|
results[attrPath] = fmt(
|
||||||
"* %s (%s)\n %s\n",
|
"* %s (%s)\n %s\n",
|
||||||
wrap("\e[0;1m", hilite(attrPath, attrPathMatch, "\e[0;1m")),
|
wrap("\e[0;1m", hilite(attrPath, attrPathMatch, "\e[0;1m")),
|
||||||
wrap("\e[0;2m", hilite(parsed.fullName, nameMatch, "\e[0;2m")),
|
wrap("\e[0;2m", hilite(name, nameMatch, "\e[0;2m")),
|
||||||
hilite(description, descriptionMatch, ANSI_NORMAL));
|
hilite(description, descriptionMatch, ANSI_NORMAL));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue