Hi developers,
My documents have a large number of labels and I find myself
scrolling often to try to locate items to cross-reference. I thought a
feature that short-lists the labels based on the string entered into the
reference line edit (referenceED widget) would be useful.
I now have a prototype implementation where I have connected the
referenceED's textChanged() signal to a new slot. In this slot, I
iterate over all the reference docstrings, convert each to QString and
check if the referenceED string is a substring of the ref label
(case-insensitive). If so, I add this to a temporary QStringList. At the
end, I flush refsLW and repopulate it with the filtered list.
I have a few questions:
1. Do you think this is a nice-to-have feature for inclusion?
2. If it is, then GuiRef::redoRefs(), GuiRef::sortToggled etc. will need
to be redone so that sorting applies to the shortlist and not to the
full list of refs as per the current implementation. Will this interfere
with existing functionality?
3. Any caveats I haven't spotted? Tips? Advice?
thanks,
Manoj