Summary: | Better inbuilt search mode for all treeviews and listviews | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kitemviews | Reporter: | Eric Armbruster <eric1> |
Component: | general | Assignee: | David Edmundson <kde> |
Status: | CONFIRMED --- | ||
Severity: | wishlist | CC: | kdelibs-bugs, notmart |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | jetbrains_ide_example |
Description
Eric Armbruster
2023-12-06 17:32:06 UTC
Hi, I totally agree with you. Filtered navigation UX can and should be improved. I'd imagine a complete solution would consist of three parts: - A model would provide a filtering layer: roles such as whether a row matches at all, and ranges of sub-matches. KItemModels feels like the right place for it. - Then a specialized view would negotiate the filtering state with said model, presenting current search text and reacting to key press events as appropriate. - Finally, a specialized delegate would need to render sub-matches as highlighted regions. FYI there is such implementation in Zeal, the documentation browser: https://github.com/zealdocs/zeal/pull/1475 In case of QtWidgets, KItemViews seems like a good fit for view and delegate types; except it is a Tier-1 framework, meaning it can't depend on KItemModels. That sucks, but I'm sure we'll figure something out. And then we'd also need something for QML/QtQuick. |