ui: Added second line to search autocompletion list showing namespace or filepath
* Show namespace or filepath in second line of search autocompletions * Add filepaths relative to .coatidb location * Rescore matches to acknowledge line split * Fixed SearchMatch type to be drawn always visible at right edge
This commit is contained in:
@@ -121,6 +121,32 @@ Id HierarchyCache::getLastVisibleParentNodeId(Id nodeId) const
|
||||
return nodeId;
|
||||
}
|
||||
|
||||
size_t HierarchyCache::getIndexOfLastVisibleParentNode(Id nodeId) const
|
||||
{
|
||||
HierarchyNode* node = nullptr;
|
||||
HierarchyNode* parent = getNode(nodeId);
|
||||
|
||||
size_t idx = 0;
|
||||
bool visible = false;
|
||||
|
||||
while (parent)
|
||||
{
|
||||
node = parent;
|
||||
parent = node->getParent();
|
||||
|
||||
if (node->isVisible())
|
||||
{
|
||||
visible = true;
|
||||
}
|
||||
else if (visible)
|
||||
{
|
||||
idx++;
|
||||
}
|
||||
}
|
||||
|
||||
return idx;
|
||||
}
|
||||
|
||||
void HierarchyCache::addAllChildIdsForNodeId(Id nodeId, std::vector<Id>* nodeIds, std::vector<Id>* edgeIds) const
|
||||
{
|
||||
HierarchyNode* node = getNode(nodeId);
|
||||
|
||||
Reference in New Issue
Block a user