Bug 438100 - path tab completion navigate to wrong folder
Summary: path tab completion navigate to wrong folder
Status: RESOLVED NOT A BUG
Alias: None
Product: dolphin
Classification: Applications
Component: bars: location (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-05 01:48 UTC by Rajinder Yadav
Modified: 2021-06-05 10:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
path example (190.83 KB, image/png)
2021-06-05 01:49 UTC, Rajinder Yadav
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rajinder Yadav 2021-06-05 01:48:19 UTC
SUMMARY

When typing a path and then hitting tab to complete first suggestion, Dolphin will navigate to the wrong folder when enter is pressed.

Dolphin is incorrectly choosing the 1st child folder to go into, rather than the parent folder.

See pic, it shows the folder to enter is "home/yadav/dev/docs", but actually enters 1st child folder "audioklips".


STEPS TO REPRODUCE
1. mkdir -p /tmp/foo/bar/{aa,bb,cc}
2. Open Dolphin, press CTRL+L
3. Type in /tmp/foo/b
4. Press Tab to complete suggestion
5. Press enter

OBSERVED RESULT

Navigated to path /tmp/foo/bar/one

EXPECTED RESULT

path /tmp/foo/bar


SOFTWARE/OS VERSIONS

Operating System: openSUSE Tumbleweed 20210602
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2
Kernel Version: 5.12.4-2-default
OS Type: 64-bit
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 2700X Eight-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: Radeon RX 570 Series

ADDITIONAL INFORMATION
Comment 1 Rajinder Yadav 2021-06-05 01:49:41 UTC
Created attachment 139010 [details]
path example
Comment 2 Méven Car 2021-06-05 09:42:46 UTC
I do reproduce, nice reproducing steps.

The issue is that the kurlnavigator once tab was pressed is eager and will open the child directory even if it was not selected.
Comment 3 Méven Car 2021-06-05 10:44:28 UTC
I don't think that is a bug, using tab will suggest you next folders available recursively that is expected.

Two things to note for your use case:

 - You can skip the first Tab and you will obtain what you expect here, that is type 'b' then enter.
 - You can type backspace to remove the last / and the completion will stop where you'd expect.