Bug 452099 - Location bar should not match from beginning of path, but rather the first match
Summary: Location bar should not match from beginning of path, but rather the first match
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: bars: location (show other bugs)
Version: unspecified
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-31 06:49 UTC by shenlebantongying
Modified: 2022-03-31 06:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.