Skip to content

Draft: [KLineEdit] Make autocompletion behave more like how it does in console shells

Noah Davis requested to merge work/ndavis/shell-like-autocompletion into master

I think I've finally figured out where the change needed to be made, but I'm not certain. I definitely need people to help test this because I do not know every app that uses completions or every way that completions might be used.


Why:

Having an autocompletion be accepted when you haven't typed the first letter of the suggested completion is confusing, especially for people who have used autocompletions for console shells before, such as Zsh, Fish or Bash. The most common area where this is a problem is completion of URLs/file paths.

Before: If I manually type /home/noah/kde/src/frameworks/kcompletion/ and press enter, the directory I will actually be sent to is /home/noah/kde/src/frameworks/kcompletion/autotests

After: If I manually type /home/noah/kde/src/frameworks/kcompletion/ and press enter, the directory I will be sent to remains /home/noah/kde/src/frameworks/kcompletion

https://bugs.kde.org/show_bug.cgi?id=420966

BUG: 420966

FIXED-IN: 5.75

cc: @teams/vdg, @dfaure

Edited by Noah Davis

Merge request reports

Loading