https://bugs.kde.org/show_bug.cgi?id=455865

Yerrey Dev <yer...@protonmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yer...@protonmail.com
             Status|REPORTED                    |CONFIRMED
     Ever confirmed|0                           |1

--- Comment #1 from Yerrey Dev <yer...@protonmail.com> ---
Even adding something basic into kate/apps/lib/quickopen/katequickopen.cpp
filterAcceptsRow() such as:

```
if (name.contains(fileNameMatchPattern, Qt::CaseInsensitive)) {
            score += 100;
            score += (sm->isOpened(sourceRow))*100;
}
```

Would bump exact matches above the fuzzy searches, and further the ones that
are open above those. Even with a flat 100 score increase, in some specific
situations the fuzzy match has higher score than the exact match, so the number
could be even higher. This would only fix the Quick Open search, so I'm not
sure if there is a way to fix this more generally or even in the fuzzy_match
itself. Pictures for reference of this change attached below.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to