Bug 452099

Summary: Location bar should not match from beginning of path, but rather the first match
Product: [Applications] dolphin Reporter: shenlebantongying <shenlebantongying>
Component: bars: locationAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description shenlebantongying 2022-03-31 06:49:20 UTC
Right now, if you type after the location bar an autocomplete popup will show up listing subfolders/files.

Problem is that it matches strictly from the beginning of the strings, and it's pretty numb!

It doesn't work on scenarios like:

.../2022-something
.../2022-anotherthing
.../2022-morestfaffs
.../2023-nice
.../2023-ok

If you want to jump directly to one of the `2022-  `, you have to type `2022-` reluctantly. 

If the match starts from the first match, you can just type `anotherthing` and tab select `2022-anotherthing`, quick and fast.

Even for regular folders without prefix patterns, this can still help, because sometimes memory only remembers the later part of the folder name.

---

Probably can go further: 

The result should be fuzzy search ( in a mode that strictly put matched result at top), so that the autocomplete will tolerate human errors.

---

Prior art:

Dolphin's own filter  :-)

Autocomplete is a process of narrowing when the user typing. 

A better location bar be like -> type to filter to a single or a few results, then use tab to select the one.
Comment 1 shenlebantongying 2022-03-31 06:58:40 UTC
There are a lot of existing CLI tools doing a better `cd`,

One is the fish shell. Please try its default `cd`  -> type some names and press tabs, it's much faster.