Bug 422951 - Type-ahead navigation in dolphin resets position mid-search when a file is selected
Summary: Type-ahead navigation in dolphin resets position mid-search when a file is se...
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: search (show other bugs)
Version: 20.04.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2020-06-14 08:07 UTC by Kyle Tirak
Modified: 2022-07-31 14:24 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
bisect log (607 bytes, text/x-log)
2021-11-19 02:41 UTC, Vladimir Yerilov
Details
build log (25.28 KB, text/x-log)
2021-11-19 02:46 UTC, Vladimir Yerilov
Details
build log 2 (2.08 KB, text/x-log)
2021-11-19 02:46 UTC, Vladimir Yerilov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle Tirak 2020-06-14 08:07:22 UTC
SUMMARY

When using type-ahead navigation in a folder in Dolphin, if a file is selected (indicating a position to start the navigation from), it seems to reset position to the top of the folder after the second character is typed rather than continuing forward. This makes sequential searches on the same substring always end up at the same file rather than moving forward in sequence, making navigation difficult as files starting with the same substring are not always near each other (ie. if the folder is currently sorted by something other than completely alphabetically).


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.7.2-arch1-1
(available in About System)
KDE Plasma Version: 5.19.0
KDE Frameworks Version: 5.70.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION
Comment 1 Vladimir Yerilov 2021-08-09 09:16:22 UTC
Hi all,

This is a regression I noticed a year or more ago and I hoped that it would be noticed by someone else too, but unfortunately, it wasn't.
I can't say when it was introduced exactly, but I checked using Kubuntu 18.04 and 20.04, and while the first isn't affected by this yet, the second is. 

Now on my side (Manjaro unstable) it works as follows:
I navigate to /etc, where I have “sysctl.d”, “systemd” folders and “sysctl.conf” file, and when I type “sys” the selection goes to “sysctl.d” folder, but if I type that again some seconds later, the selection won’t move on to the next item, which is “systemd”, and the next iteration of typing “sys” does not move to the “sysctl.conf” file, instead, every time only the first entry beginning with “sys” is receiving selection focus, which is “sysctl.d” folder in this case, and that’s frustrating. Moreover, this behavior isn’t observed when trying the same with KDE file picker – there it works as I expect it to work – the way it used to work before something went wrong between KDE Applications 17.12.3 and 19.12.3 (according to versions used in Kubuntu 18.04 and 20.04). Other info from those distros:
bionic: KDE Plasma: 5.12.9, Frameworks: 5.44.0
focal: KDE Plasma: 5.18.5, Frameworks: 5.68.0
Comment 2 Nate Graham 2021-08-09 15:18:11 UTC
Can confirm too.
Comment 3 Nate Graham 2021-08-09 17:47:10 UTC
I bisected back to 19.12 and it seems to be broken there too actually.
Comment 4 Vladimir Yerilov 2021-11-19 02:41:24 UTC
Created attachment 143716 [details]
bisect log

So I decided to bisect too.
Bisect log is attached.
I stopped because dolphin has begun failing to build and I have no idea how to proceed.
Comment 5 Vladimir Yerilov 2021-11-19 02:46:01 UTC
Created attachment 143717 [details]
build log

Building with `kdesrc-build dolphin --no-src --resume-from=dolphin`
Comment 6 Vladimir Yerilov 2021-11-19 02:46:37 UTC
Created attachment 143718 [details]
build log 2

Building with `kdesrc-build dolphin --no-src`
Comment 7 Vladimir Yerilov 2021-11-19 13:14:59 UTC
So 219e40cff8e91e6cf23f9aec5d1dc2f9d7e45577 "Use qplatformdefs wrappers" by Elvis Angelaccio is the last commit in master that builds fine and produces Dolphin which has type-ahead working properly. Most consequent commits either produce broken type-ahead or doesn't get built successfully at all.
Further investigation needs a look from a developer's perspective, I absolutely have no clue what's going on under the hood.
Comment 8 Vladimir Yerilov 2022-07-31 14:24:24 UTC
I noticed that 1-letter navigation is still possible. For instance, pressing "m" in /etc once results in jumping "modprobe.d", then pressing it the 2nd time moves the selection to "modules-load", and so on, then as directories starting with are over, the selection scrolls down to the first file starting with "m" like "machine-id", and continues to move down as user keeps pressing "m" button. This is, however, not even half as convenient as it was before this bug was introduced, and filter panel for now feels like a better way to quickly jump to a file of interest.