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

Marco Martin <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/plasma-workspace/-/commi |ma/plasma-workspace/-/commi
                   |t/e6c7d9f870ab4be0f08e6a65f |t/52c9cb6b161b1e7d5c0e85e6c
                   |fde7954543f7bd1             |a301a05da2fcc10

--- Comment #7 from Marco Martin <[email protected]> ---
Git commit 52c9cb6b161b1e7d5c0e85e6ca301a05da2fcc10 by Marco Martin.
Committed on 14/10/2025 at 12:37.
Pushed by mart into branch 'Plasma/6.5'.

servicerunner: calculate the distance of the "beginning" of the items too

bitap worked in a way that strongly favored matches trough the end of the word,
rather than treating them the same
When matching the various entries, change how bitap works, and now end instead
of the end of the word where it maches, calculate the end of the pattern when
we have a match, this giving equal tretment where the match is


(cherry picked from commit e6c7d9f870ab4be0f08e6a65ffde7954543f7bd1)

67698e95 servicerunner: calculate the distance of the "beginning" of the items
too
1d09283b different approach: change how bitap woorks
7b3228fe bitap.end becomes bitap.size

Co-authored-by: Marco Martin <[email protected]>

M  +22   -17   runners/services/autotests/bitaptest.cpp
A  +14   -0    runners/services/autotests/fixtures/Set Resolution
2560x1440.desktop
A  +14   -0    runners/services/autotests/fixtures/Set Resolution
3440x1440.desktop
A  +17   -0    runners/services/autotests/fixtures/org.kde.dolphin.desktop
A  +18   -0    runners/services/autotests/fixtures/org.kde.rkward.desktop
M  +26   -0    runners/services/autotests/servicerunnertest.cpp
M  +12   -11   runners/services/bitap.h
M  +1    -1    runners/services/servicerunner.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/52c9cb6b161b1e7d5c0e85e6ca301a05da2fcc10

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

Reply via email to