https://bugs.kde.org/show_bug.cgi?id=442717
Bug ID: 442717 Summary: The URL navigator shows child directories in improper order in some cases Product: frameworks-kio Version: git master Platform: Archlinux Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: URL navigator Assignee: kio-bugs-n...@kde.org Reporter: eduardo.c...@kdemail.net CC: kdelibs-b...@kde.org Target Milestone: --- Created attachment 141711 --> https://bugs.kde.org/attachment.cgi?id=141711&action=edit Screenshot showing the bugged ordering SUMMARY The URL navigator shows child directories in improper order in some cases. If there is a child directory named "somefolder", and another child directory named "somefolder_A", the latter is incorrectly displayed first in the list of suggestions, contrary to the order that Dolphin itself displays its directories. If using the "Automatic" or "Dropdown List & Automatic", this actually causes a very annoying behavior that makes it pretty hard to enter "somefolder". If we type in the exact full path to "somefolder" (without the trailing slash), the completion mechanism will suggest "somefolder_A" and that is where we are taken if we press ENTER. This also happens if we have a "somefolder.A" or "somefolder-A", probably even other special characters. It doesn't happen if the next character after the "somefolder" string is a letter or a number. See attached screenshot for clarification. STEPS TO REPRODUCE 1. Create a folder named "~/test" 2. Inside this new "~/test" folder, create directories "somefolder" and "somefolder_A" 3. In Dolphin, make the location bar editable, right-click it and make sure "Dropdown List & Automatic" is selected under the "Text Completion" menu. 4. Manually type "~/test/somefolder" (without quotes) into the location bar, but don't press ENTER yet. 5. Observe the bugged ordering in the dropdown list 6. Observe that it is suggesting to autocomplete to "~/test/somefolder_A" 7. Press ENTER. You will be taken to "~/test/somefolder_A". But you typed the exact path to "~/test/somefolder", your intention was likely to go to "~/test/somefolder". OBSERVED RESULT We see that special characters currently have priority over an "End-Of-String" char in this ordering EXPECTED RESULT "End-Of-String" char should have priority over any other character SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.22.5 KDE Frameworks Version: 5.86.0 Qt Version: 5.15.2 Kernel Version: 5.14.5-arch1 (64-bit) Graphics Platform: X11 -- You are receiving this mail because: You are watching all bug changes.